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.

Member Avatar


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.