Fix detection of span and div elements without attributes.

- Fix: Better detection of <span> and <div> elements that do not have attributes.
This commit is contained in:
Daniel Kraus
2017-09-05 08:58:04 +02:00
parent 3382336a45
commit a78a782f04
3 changed files with 19 additions and 2 deletions

View File

@ -135,8 +135,8 @@ class Splitter {
'<pre>.*?<\/pre>|<html>.*?<\/html>|' . // pre/html
'<script>.*?<\/script>|' . // script
'<gallery>.*?<\/gallery>|' . // gallery
'<div.+?>|<\/div>|' . // attributes of div elements
'<span.+?>|<\/span>|' . // attributes of span elements
'<div.*?>|<\/div>|' . // attributes of div elements
'<span.*?>|<\/span>|' . // attributes of span elements
'<file>[^<]*<\/file>|' . // stuff inside file elements
'style=".+?"|class=".+?"|' . // styles and classes (e.g. of wikitables)
'<noautolinks>.*?<\/noautolinks>|' . // custom tag 'noautolinks'