Subject: | Feature Request: Easy Way for Replacing Special Character with HTML Entities |
Date: | Sun, 24 Aug 2014 16:54:02 +0200 |
To: | bug-Text-WikiCreole [...] rt.cpan.org |
From: | Christian Mauderer <oss [...] c-mauderer.de> |
Hello,
is there any easy way to let the module encode special characters in the
text passages?
I'm searching for a way to convert all special characters that are not
part of the creole formatting to html entities. E.g. the '<' should
become a '<' or some special characters like 'รค' (German umlaut a)
should become a 'ä'.
Eventually that could be implemented as some kind of application defined
filter-function for all text parts. The user could define the function
(similar to the plugin function) to one that uses e.g. HTML::Entities to
encode all "critical" characters.
The main problem that keeps me from implementing it and providing a
patch is that I'm not sure where plain text junks are added to the
output. I think that I'm able to get a working solution if you could
provide me some hints where to start. I would suppose that most of the
work is done in the 'parse' function? Are there any other sub-functions
that add plain non-html text to the output?
Kind regards,
Christian Mauderer