Do not link inside <file>...</file> tags.

- IMPROVEMENT: Do not link inside <file>...</file> tags.
This commit is contained in:
Daniel Kraus
2015-02-05 20:30:48 +01:00
parent ac8d103612
commit 5314331e5f

View File

@ -152,6 +152,7 @@
'<script>.*?<\/script>|' . // script
'<div.+?>|<\/div>|' . // attributes of div elements
'<span.+?>|<\/span>|' . // attributes of span elements
'<file>[^<]*<\/file>|' . // attributes of span elements
'style=".+?"|class=".+?"|' . // styles and classes (e.g. of wikitables)
'\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls
'(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses