On Mon, 21 Jul 2014, Charlie Brady wrote:

> No, that doesn't work for me, because of whitespace.
> 
> cf.
> 
> $dom->parse('<!-- test --><b>123</b>')
> 
> and:
> 
> $dom->parse(' <!-- test --><b>123</b>')
> 
> Can anybody suggest anything, should of using s/// and parsing a new 
> Mojo::DOM object? I can see Mojo::DOM::text, but dont see how I could use 
> it.

Sorry, everyone. I need more sleep. That should say:

.. short of using s/// and parsing a new Mojo::DOM object.

I have my code working that way now, but it seems excessive to parse those 
fragments all over again.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to