Part of a script that generates XML that is ingested by XSLT and spit out to an HTML web page.
use XML::Writer ;
$writer->emptyTag('Row' , 'text' => $text ) ;
Works great, but now I want to put some HTML markup in there... Instead of:
$text = "Line of text." ;
I need:
$text = qq |<span class="blah">Line of text.</span>| ;
Tried changing
<
to
<
and
>
to
>
in the string but didn't work...
(UPDATE: Responding to a comment here... When I said it "didn't work", specifically, the attempt to pass through HTML markup was unsuccessful, because the markup was displayed instead of being processed. In other words, the tags weren't applied, they just showed up as part of the text. AC)
Thanks all. I'm learning...