I'm having trouble putting a markup tag as text on a radiobutton. I'm having a question for example, "what do we use for putting up a horizonal line in html?". Then a radiobutton should have multiple choice which contains markup tags like "<hr>" but the problem is, it's being detected by html and will execute the tag.

6 Years
Discussion Span
Last Post by diafol

Psychic is right. However if you intend to display a lot of tags, you can end up climbing up your own derriere with escape characters. If you have php installed (and on your host), you can do something like this:

<?php echo htmlentities('<p><strong><span class="bigcapital">P</span></strong>lease do not look <em>BELOW</em> the line</p><hr />');?>

But there again, it may be overkill for simple examples like the one you gave.

Edited by diafol: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.