Login | Register | FAQ
Anonymous

How to make html execute entity symbol as html tag?

+ Post a reply

3 posts Page 1 of 1


How to make html execute entity symbol as html tag?

by akvUsername » Fri Jun 29, 2012 2:45 pm

Hi,
I'm just doing some experiment.

I have an html file.

In my first example I wrote
Code: Select all
<b>BOLD</b>

when I open this file using Firefox it execute successfully.
The word BOLD become 'bold'.

Now in my second example, I changed all above symbol to html entity code.
It become like this
Code: Select all
&#60;&#98;&#62;BOLD&#60;&#47;&#98;&#62;

however when I open this using same browser, it didn't execute like the first example.
It appear EXACTLY like this
Code: Select all
<b>BOLD</b>


My question is:
how to get the result like my first example using the code in my second example? (the word BOLD become 'bold')

TQ.
User avatar

akvUsername

  • Posts: 3
  • Joined: Mon May 21, 2012 3:36 am

Re: How to make html execute entity symbol as html tag?

by chrisf1288 » Fri Jun 29, 2012 4:14 pm

Hi akvUsername,

I'm not exactly sure why you would want to use entities to do this. Really the main reason someone would do this would be to purposely show the code (like in a HTML tutorial).
User avatar

chrisf1288

  • Posts: 128
  • Joined: Sun Jun 26, 2011 1:01 am

Re: How to make html execute entity symbol as html tag?

by XainPro » Mon Jul 02, 2012 5:52 am

the creation purpose of html entity code is to show the special characters to viewer and make then unelectable that why html entity code build and its not possible to achieve what you are trying kill the purpose it is made for.
User avatar

XainPro

  • Posts: 3547
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1

?>