nhayder
3 months ago

saving javascript data on DB (google analytics + adSense)

Posted 3 months ago by nhayder

Hi,

i'm working on new app where my customer need to add Google analytics + adSense dynamically to the header of every page on the website.

I'm using https://github.com/mewebstudio/Purifier to sanitize inputs data, but it looks like the package is now allowing any js script tags after i tried to add them to the package whitelist.

so my question is: How to safely store javascript code in database and render them to blade template.

Please sign in or create an account to participate in this conversation.