WPIntell

Source evidence

Scripts in HTML blocks disappearing

Revision Manager TMC · support · 2022-11-28T16:38:00+00:00

neutralsentiment
mediumseverity
0.42relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 6 rows with source links

16.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

5 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
pid1984 resolved
Hey there; We’ve got an interesting issue that’s showed up since a client started using this plugin on their site. When they add <script> tags within an html block in a revision, then publish the revision at a scheduled point, the <script> tags disappear. We’re trying to track down the source of the issue, and we were wondering if you’d heard of this happening before with your plugin. Thanks so much for your help! Allen Hi! It seems like it’s connected to filtering posts content by WordPress wp_kses function. In short: any external modifications of posts are filtered and only accepted tags stay untouched. I belive it is by design. You should not leave any scripts in content and use shortcodes instead 🙂 https://tommcfarlin.com/what-is-wordpress-kses/ ` This reply was modified 3 years, 5 months ago by themastercut .

Comments

1 shown
themastercut 2022-12-08T16:50:00+00:00

Hi! It seems like it’s connected to filtering posts content by WordPress wp_kses function. In short: any external modifications of posts are filtered and only accepted tags stay untouched. I belive it is by design. You should not leave any scripts in content and use shortcodes instead 🙂 https://tommcfarlin.com/what-is-wordpress-kses/ ` This reply was modified 3 years, 5 months ago by themastercut .