Make valid HTML, stringify, regex replace script tags