Macro to un-HTML text

Jeff Shepherd JEFF.K.SHEPHERD at saic.com
Thu Nov 20 10:30:42 PST 2003


Is there a macro that will "safen" text so it isn't translated into HTML tags?

Let's say I want to display example HTML tags on a web page.  If I put the text

	<B>This is bold</B>

in my web page I will get bold text, so what I want instead is

	&lt;B&gt;This is bold&lt;/B&gt;

which displays the HTML tags rather than applying them.  But I don't 
want to do a search and replace for all the "<" and ">" and such.  I 
want to use an "un-HTML" macro, something like this:

	{unHTML("<B>This is bold</B>")}

which will automatically make the appropriate substitutions.  I could 
write this macro, but I suspect Frontier already has something like 
this built in. Does it?
-- 
(Jeff Shepherd)            Drink your coffee...
<jeff at trg.saic.com>        There are people asleep in India right now.



More information about the Frontier-Users mailing list