/sanitize_msword

Clean MS Word html

Primary LanguageRuby

This gem cleans the html code that is copied from Microsoft Word.

Usage

To String class was added a new method 'sanitize_word_html'

  1. Just type

'

<![if !supportLists]><![endif]>fgcvb

'.sanitize_word_html

  1. And you will get this result

=> "

fgcvb

"