pacman, rainbows, and roller s

Parsing HTML Code

How to Parse HTML Codeand what is the function?
While our post html code to web and blog, code is look original (the function is innactive)

Look the formula below :

  1. Change < to &lt;
  2. Change > to &gt;
  3. Change " (Double Quote) to &quot;
  4. Change ' (Single Quote) to &#039;
  5. Change & to &amp;
  6. Change (Space) to &nbsp;
  7. Change © to &copy;
  8. Change ® to &reg;
  9. Change ± (Plus Minus) to &plusmn;
The formula above is great ,,

Example Link for Text :
My Blog
<a href="http://nyutz.heck.in">My Blog</a>

Parsing HTML Code :
&lt;a href=&quot;http://nyutz.heck.in&quot;&gt;My Blog&lt;/a&gt;

Example Link for Images :
18+

Original Link Code :
<a href="http://facebook.com/plugins/like.php?href=https://facebook.com/profile.php?id=475902835836809"><img src="http://nyutz.heck.in/files/18.png" height="200" width="200" alt="18+" /></a>

Parsing HTML Code:
&lt;a href=&quot;http://facebook.com/plugins/like.php?href=https://facebook.com/profile.php?id=475902835836809&quot;&gt;&lt;img src=&quot;http://nyutz.heck.in/files/18.png&quot; height=&quot;200&quot; width=&quot;200&quot; alt=&quot;18+&quot; /&gt;&lt;/a&gt;

Parse HTML Tutorial Finished

Share to :


share to fbshare to twitter