Unified · Split
| @@ -2,7 +2,7 @@ · 1 unmodified line | |||
| 2 | 2 | ||
| 3 | module Docs | 3 | module Docs |
| 4 | class CleanTextFilter < Filter | 4 | class CleanTextFilter < Filter |
| 5 | EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace)(\w+)[^>]*>[[:space:]]*<\/\1>/ | 5 | EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace|rect|path|ellipse|line|polyline)(\w+)[^>]*>[[:space:]]*<\/\1>/ |
| 6 | 6 | ||
| 7 | def call | 7 | def call |
| 8 | return html if context[:clean_text] == false | 8 | return html if context[:clean_text] == false |