Register  |  Login



Earn money by sharing your knowledge through Quomon's revenue sharing program

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

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

john2

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

Question Answered

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

john2: 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 HTML Experts

View More

Rank

Expert

Points

1.

rcastagna

1022

2.

jgivoni

928

3.

nidhi

875

4.

xarcus

240

5.

john2

220

6.

danmacryan

125

7.

Anpanman

75

8.

multani.sarbjit

75

9.

PeterNZ

75

10.

roger.berbel

75

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