Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 25 Time: 18:05 - Mar 06, 2007  

anne.dane

html tags uncoded

If you want to discuss html in a website that accepts html, how do you write the html tags you want to discuss in a way so they will not be read as html? Is there some "un-code" tags?

Categories

Answer Discussion
Tutorials

 

mary2

Date:: Mar 07, 2007

Time:: 02:58

Hey Anne,

I had the same question and rcastagna gave me this answer

------------------

John,

The "easy" (but sometimes tedious) way of doing this is by using the HTML substitue characters for the less-than and greater-than symbols.

Using your example above, you would code it as follows: <font face="arial">

Depending on your needs, you could also use the HttpUtility.HtmlEncode available in .NET...this would come into play a bit more if you were fetching the strings from a database, or some other sort of "dynamic" store.

Let me know if this helps...

Ric Castagna

-----------------------------------





jgivoni

Date:: Mar 07, 2007

Time:: 08:28

I agree with John's / Ric's solution.
It's a hassle, but it's the only way if the website doesn't do the html-entities-encoding (the proper term, I believe) automatically.
There is a trick though: You only have to encode the tag opening < character...
- the > can be left as is, since it's not considered a closing tag, when no open tag was found :-)

anne.dane

Date:: Mar 07, 2007

Time:: 18:10

Thank you for your quick answers!

admin

Date:: Jun 16, 2007

Time:: 16:07

anne.dane, please close this question and distribute the points.
If you didn't get a solution to your problem or you found it yourself, please leave a comment here to let the experts know.
Thanks,
Quomon Admin

admin

Date:: Jun 25, 2007

Time:: 06:06

The question has been closed.

Quomon Admin

kirzewde

Date:: Dec 26, 2009

Time:: 04:21

i dont know you tel me

Question Answered

This question has been closed, and points have been rewarded to the following experts:


mary2: 20
jgivoni: 5

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10354

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es