my $html = html('<h1>').$not_html.html('</h1>');
- print html($html); # <h1>Hello, Bob " Jake</h1>
+ print html($html); # <h1>Hello, Bob & Jake</h1>
or, alternatively,
"<h1>${not_html}</h1>";
}
- print html($html); # <h1>Hello, Bob " Jake</h1>
+ print html($html); # <h1>Hello, Bob & Jake</h1>
(but see the L<HTML::String::Overload> documentation for details and caveats).
[ 'some text that will not be escaped', 0 ]
- [ 'text that you DO want to be scaped', 1 ]
+ [ 'text that you DO want to be escaped', 1 ]
$existing_html_string_value