Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Improved script parsing through insertHeadTag

Latest

Choose a tag to compare

@Firesphere Firesphere released this 24 Sep 02:44
· 7 commits to master since this release
f345b4e

When using insertHeadTag, the original method used with strip_tags was too trigger-happy and could potentially strip out valid/wanted HTML from javascript, where it contained e.g. a variable with HTML to be rendered by the javascript (templates etc.)

The new solution is to take the contents of the <script></script> tags instead.