indiWiz.com

Subhash's Tech Log

JEdit Macro for XML/HTML Special Character Conversion

without comments

One of the common requirement I face often when posting text to blog/forum/Wiki etc. is character conversion:

& &
< &lt;
> &gt;
" &quot;
' &apos;

I developed a small JEdit Macro for doing this. This macro can be executed from JEdit menu Macros > Run Other Macro..., or can be installed by copying to: ${user.home}/.jedit/macros/ (later executed from the menu Macros). This macro operates on selected text.

Written by Subhash Chandran

December 31st, 2008 at 2:03 pm

Posted in Scripting

Tagged with

Leave a Reply