This commit is contained in:
2019-02-06 00:49:12 +03:00
commit 8dbb1bb605
4796 changed files with 506072 additions and 0 deletions

24
bml/test/escape/eh.correct Executable file
View File

@@ -0,0 +1,24 @@
Escape HTML tags:
In structural HTML, the <b> tag should be replaced with <strong> and the
<i> tag with <em>.
Escape a code example:
<pre><code># Overload Apache::FakeRequest&#39;s print to append output to a variable.
{
no warnings &#39;redefine&#39;;
*Apache::FakeRequest::print = sub {
my $r = shift;
$Output .= join(&#39;&#39;, @_)
};
*Apache::FakeRequest::log_error = sub {
my $r - shift;
print STDERR @_, &quot;\n&quot;; $Errout .= join(&#39;&#39;, @_)
};
*Apache::FakeRequest::pnotes = sub {
my ( $r, $key ) = @_;
$Pnotes-&gt;{ $key } = shift if @_;
$Pnotes-&gt;{ $key };
};
}</code></pre>