Skip to content

Commit

Permalink
Clean up input HTML - started
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Jul 24, 2023
1 parent 1fbc0bf commit 3c64184
Show file tree
Hide file tree
Showing 3 changed files with 29,362 additions and 0 deletions.
7 changes: 7 additions & 0 deletions odata-protocol/temp/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const fs = require("fs");

const old = fs.readFileSync("./odata-v4.01-os-part1-protocol.html", "latin1");

const clean = old.replace(/<span[ \n]style='font-family:(\r\n)?"Courier[ \n]New"'>([^<]*)<\/span>/sg,"<code>$2</code>");

fs.writeFileSync("./odata-v4.01-os-part1-protocol-clean.html", clean, {encoding:"latin1"})
Loading

0 comments on commit 3c64184

Please sign in to comment.