dongxixian7803
dongxixian7803
2015-09-29 00:37

如何使用<pre>标签不出现在源代码中[关闭]

  • pre
  • php

I would like to render a webpage like the pastebin.com does in a raw view mode. Here is an example on pastebin.com

http://pastebin.com/raw.php?i=VawEm8ge

if you look to the source code, there is no html code.

I tried in this way:

   <pre style="word-wrap: break-word; white-space: pre-wrap;">
   #EXTM3U
   #EXTVLCOPT:udp-caching=1000
   #EXTINF:-1, DUNA Televízió
   http://212.40.98.166/intstreams/mtva/dunalive.smil/VID_854x480_HUN.m3u8

   #EXTINF:-1 , Duna World
   http://212.40.98.161/intstreams/mtva/dunaworldlive_international.smil/VID_854x480_HUN.m3u8
  </pre>

But the output is not the same with the output from the pastebin.com

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答