Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何将代码保存在一个博客页面中,并且该代码不会在该博客页面的代码中更改?_Html_Xml_Blogs - Fatal编程技术网

Html 如何将代码保存在一个博客页面中,并且该代码不会在该博客页面的代码中更改?

Html 如何将代码保存在一个博客页面中,并且该代码不会在该博客页面的代码中更改?,html,xml,blogs,Html,Xml,Blogs,如何将代码保存在一个博客页面中,并且该代码不会在该博客页面的代码中更改 我通过4行代码访问了我的一个yahoo博客 但是我分析了这一个雅虎博客页面的代码,字符已经改变了 @"//div[@id='transcriptText']/div[@class='notranslate']/p/a/@href"]; @"//div[@id='videoPlayerSWF']/noscript/div/p/a/@href"]; @"//div[@id='transcriptText']

如何将代码保存在一个博客页面中,并且该代码不会在该博客页面的代码中更改

我通过4行代码访问了我的一个yahoo博客

但是我分析了这一个雅虎博客页面的代码,字符已经改变了

  @"//div[@id='transcriptText']/div[@class='notranslate']/p/a/@href"];

   @"//div[@id='videoPlayerSWF']/noscript/div/p/a/@href"];

    @"//div[@id='transcriptText']/div/p/a/text()"];

    @"//div[@id='transcriptText']/div/p/a/text()"];


怎么做,字符不会被改变?

通过这种方式解决

<meta http-equiv="Pragma" content="no-cache" />
<meta property="og:type" content="article" />
<meta property="og:title" content="ted | Blog | wert&#039;s blog" />
<meta property="og:description" content="  @&amp;quot;//div[@id=&amp;#039;transcriptText&amp;#039;]/div[@class=&amp;#039;notranslate&amp;#039;]/p/a/@href&amp;quot;];








   @&amp;quot;//div[@id=&amp;#039;videoPlayerSWF&amp;#039;]/noscript/div/p/a/@href&amp;quot;];








    @&amp;quot;//div[@id=&amp;#039;transcriptText&amp;#039;]/div/p/a/text()&amp;quot;];








    @&amp;quot;//div[@id=&amp;#039;transcriptText&amp;#039;]/div/p/a/text()&amp;quot;];" />
<meta property="og:image" content="http://l.yimg.com/op/images/ico_product_56.png" />
<meta property="og:site_name" content="Yahoo! Blog" />
<pre><code>@"//div[@id='transcriptText']/div[@class='notranslate']/p/a/@href"];

 @"//div[@id='videoPlayerSWF']/noscript/div/p/a/@href"];

 @"//div[@id='transcriptText']/div/p/a/text()"];

 @"//div[@id='transcriptText']/div/p/a/text()"];
</code></pre>