https://github.com/raineorshine/wordsoap-regex
Regular expressions for cleaning up dirty HTML output from Microsoft Word.
https://github.com/raineorshine/wordsoap-regex
Last synced: 7 months ago
JSON representation
Regular expressions for cleaning up dirty HTML output from Microsoft Word.
- Host: GitHub
- URL: https://github.com/raineorshine/wordsoap-regex
- Owner: raineorshine
- License: isc
- Created: 2014-12-10T05:21:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-10T05:25:15.000Z (almost 11 years ago)
- Last Synced: 2025-03-10T15:09:33.558Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# wordsoap-regex
[](https://travis-ci.org/metaraine/wordsoap-regex)
[](http://badge.fury.io/js/wordsoap-regex)> Regular expressions for cleaning up dirty HTML output from Microsoft Word.
```js
module.exports = {
// from http://tim.mackey.ie/CleanWordHTMLUsingRegularExpressions.aspx
msoTags: /<[\/]?(font|span|xml|del|ins|[ovwxp]:\w+)[^>]*?>/,
msoAttributes: /<([^>]*)(?:class|lang|style|size|face|[ovwxp]:\w+)=(?:'[^']*'|""[^""]*""|[^\s>]+)([^>]*)>/,
}
```## License
ISC © [Raine Lourie](https://github.com/metaraine)