<?xml version="1.0" encoding="windows-1252"?>
<node id="254960" title="Re: POD-Browser 0.01 released." created="2003-05-02 07:08:47" updated="2005-04-02 09:49:59">
<type id="11">
note</type>
<author id="107642">
PodMaster</author>
<data>
<field name="doctext">
Also, due to a bug in Pod::POM, Begin nodes/commands aren't being handled correctly,
so what you really want view_begin to look like is
&lt;CODE&gt;
sub view_begin {
    my ($self, $begin) = @_;
    return '' unless $begin-&gt;format() =~ /\bhtml\b/;
    require Pod::POM::View::Text;
    return Pod::POM::View::Text-&gt;new($begin)-&gt;print;
}
&lt;/CODE&gt;
That way &lt;CODE&gt;=begin html &lt;b&gt;bolden&lt;/b&gt;&lt;/CODE&gt; does indeed show up as
&lt;b&gt;bolden&lt;/b&gt; and not as &amp;lt;b&amp;gt;bolden&amp;lt;/b&amp;gt;
&lt;p&gt;
Since the above approach is &lt;strike&gt;theoretically&lt;/strike&gt; flawed, you could try
&lt;CODE&gt;
sub view_begin {
    my ($self, $begin) = @_;
    return '' unless $begin-&gt;format() =~ /\bhtml\b/;
    my $output = $begin-&gt;content-&gt;present($self);
    for($output){
        s/&amp;amp;/&amp;/gi;
        s/&amp;quot;/\"/gi;
        s/&amp;gt;/&gt;/gi;
        s/&amp;lt;/&lt;/gi;
    }
    return $output;
}
&lt;/CODE&gt;
but that one's not &lt;B&gt;that&lt;/B&gt; much better either ;) I'm currently working on fixing this in Pod::POM
&lt;P&gt;
&lt;B&gt;update:&lt;/B&gt; s/=for/=begin/;#D LOL
&lt;p&gt;
&lt;table border=0&gt;&lt;tr&gt;&lt;td&gt;
&lt;font size=1&gt;
&lt;hr&gt;
[MJD]  [http://www.perl.org/yapc/2002/movies/themovie/|says] you &lt;i&gt;
can't just make shit up and expect the computer to know what you mean, retardo&lt;/i&gt;!
&lt;hr width="50%" align=left&gt;
I run a Win32 PPM 
[id://162391|repository] for perl [http://crazyinsomniac.perlmonk.org/perl/ppm/|5.6x]+[http://crazyinsomniac.perlmonk.org/perl/ppm/5.8|5.8x]. I take requests.
&lt;hr width="50%" align=left&gt;
** The Third rule of perl club is a statement of fact: pod &lt;I&gt;is&lt;/I&gt; sexy.&lt;/font&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</field>
<field name="root_node">
254944</field>
<field name="parent_node">
254944</field>
</data>
</node>
