in reply to Scalar string to web page

If you mean having the text displayed as entered (including >, <, & and so forth), have a look at HTML::Entities encode_entities function.

Update:

use HTML::Entities; print encode_entities '<a href="#">linky</a>'; __END__ Output: &lt;a href=&quot;#&quot;&gt;linky&lt;/a&gt;