Skip Menu |

This queue is for tickets about the HTML-WikiConverter-DokuWiki CPAN distribution.

Report information
The Basics
Id: 19429
Status: resolved
Worked: 10 min
Priority: 0/
Queue: HTML-WikiConverter-DokuWiki

People
Owner: diberri [...] cpan.org
Requestors: kh [...] pdts.de
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Added supoort for "less than", "greather than" and "ampersand"
Hi David! I was missing the support for "less than", "greather than" and "ampersand". As a quick hack I did a: ---8<--- diff DokuWiki.pm DokuWiki.pm.orig 100,102d99 < $$outref =~ s~&lt;~<~gm; # change "lower than" < $$outref =~ s~&gt;~>~gm; # change "greater than" < $$outref =~ s~&amp;~&~gm; # change "Ampersand" --->8--- Enjoy! Karsten
On Tue May 23 07:23:22 2006, guest wrote: Show quoted text
> Hi David! > > I was missing the support for "less than", "greather than" and
"ampersand". What do you mean by "missing the support"? Can you provide a snippet of code that demonstrates the problem with H::WC::DokuWiki? That would make it much easier for me to determine whether to apply your "hack" (as you call it) or to search for a more stable solution. Thanks! -- David Iberri
From: kh [...] pdts.de
Hi! On Wed Jun 07 15:03:39 2006, DIBERRI wrote: Show quoted text
> On Tue May 23 07:23:22 2006, guest wrote:
> > I was missing the support for "less than", "greather than" and
> "ampersand". > > What do you mean by "missing the support"? Can you provide a snippet of > code that demonstrates the problem with H::WC::DokuWiki? That would make > it much easier for me to determine whether to apply your "hack" (as you > call it) or to search for a more stable solution. Thanks!
By default input HTML-code like "&lt;" and "&gt;" is not converted to "<" and ">". This results in output HTML-code like "&amp;lt;" which is displayed as "&lt;" but not as "<". The diff I provided in my first posting shows the lines to be added to DokuWiki.pm in order to have the conversion done. Cheers, Karsten
On Thu Jun 08 03:50:26 2006, guest wrote: Show quoted text
> By default input HTML-code like "&lt;" and "&gt;" is not converted to > "<" and ">". > This results in output HTML-code like "&amp;lt;" which is displayed as > "&lt;" but not as "<".
Thanks for your quick reply. I've fixed the problem by adding an "escape_entities" attribute to H::WC that can be specified by the caller: print $wc->html2wiki( "&lt; &gt; &amp;", escape_entities => 1 ); # gives "&lt; &gt; &amp;" print $wc->html2wiki( "&lt;", escape_entities => 0 ); # gives "< > &" Should entity escaping be disabled by default in the DokuWiki dialect? -- David Iberri
On Thu Jun 08 11:07:40 2006, DIBERRI wrote: Show quoted text
> Thanks for your quick reply. I've fixed the problem by adding an > "escape_entities" attribute to H::WC that can be specified by the caller:
The "escape_entities" attribute will be available in H::WC 0.55. -- David Iberri
On Thu Jun 08 11:26:18 2006, DIBERRI wrote: Show quoted text
> The "escape_entities" attribute will be available in H::WC 0.55.
H::WC 0.55 has been available since early June 2006, so I'm marking this as resolved. -- David Iberri