I'm having trouble with a custom plugin I'm working on. One of the admin options needs to be a RegEx string, but even when using OPTION_TYPE_CLEARTEXT, anything between angle brackets disappears. What is the preferred way to allow text entry that is not cleansed, parsed, or stripped in any way?
Comments
Of course, then I realized that there are many existing quote files out there that people might want to use, and they probably use a different format than the one I have. So, I thought I'd make a configurable RegEx expression to parse individual lines.
Arguably, most users would find reformatting a large text file rather simple compared to the task of writing a RegEx, but I digress :-) That, and I could always post a list of common ones for different common quote file formats (if there are any?).
Anyhow, after sufficiently over-thinking the problem and over-complicating my task, I find myself in need of putting a RegEx expression in a text field for the plugin option.
It does seem like a bug, since the CLEARTEXT option implies that it will not be screwed with. But while displaying HTML would process formatting, this shouldn't happen in a text box. So, it does seem like it might be a bug in the code for displaying those fields. I might get a chance to dig through it over the next couple of days.