init
This commit is contained in:
32
bml/test/escape/ea.correct
Executable file
32
bml/test/escape/ea.correct
Executable file
@@ -0,0 +1,32 @@
|
||||
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's print to append output to a variable.
|
||||
{
|
||||
no warnings 'redefine';
|
||||
*Apache::FakeRequest::print = sub {
|
||||
my $r = shift;
|
||||
$Output .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::log_error = sub {
|
||||
my $r - shift;
|
||||
print STDERR @_, "\n"; $Errout .= join('', @_)
|
||||
};
|
||||
*Apache::FakeRequest::pnotes = sub {
|
||||
my ( $r, $key ) = @_;
|
||||
$Pnotes->{ $key } = shift if @_;
|
||||
$Pnotes->{ $key };
|
||||
};
|
||||
}</code></pre>
|
||||
|
||||
Escape old-style syntax:
|
||||
Tags in BML used to be like (= this =), but that format has since been
|
||||
deprecated.
|
||||
|
||||
Escape new-style syntax:
|
||||
Now tags in BML look like: <?foo?>.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user