 |
Forums |
Admin Start New Thread
| Message: 95087 |
 |
BY: Garrett Heaver (garrettheaver) DATE: 2010-10-22 08:38 SUBJECT: Remove all HTML Tags Hi Thomas, I see you closed out the bug I submitted. Nice one, thanks!
Just a quick question around HTML importing. Is there an option to have kramdown strip out any remaining html tags that it hasn't been able to convert? In my case I can see <div>'s still present after the call to doc.to_kramdown. I'm using a wysiwyg editor on the front end which unfortunately doesn't always generate the cleanest of HTML depending on the browser so there could possibly be other tags appearing from time to time! I guess I could always just post process the string with a regular expression but thought I'd ask first about additional HTML options within the importer.
I can see the following options right away:
:parse_block_html
:parse_span_html
:html_to_native
Thanks
Garrett | |
Thread View
Post a followup to this message
|
 |