As more developer documentation for concrete5.7 becomes available and time permits, I will be porting more of my addons. I have a lot of addons in the marketplace and it will take a while to update them all to 5.7.

Thumbnail
Safe HTML

Developed by

Intermediate
Intermediate

If an HTML block contains broken HTML or faulty JavaScript, it could break a page or if in a gloabl area even break an entire site!

This package provides a simple Safe template for the core HTML block. By assigning the Safe block template, the HTML is escaped in edit mode. So as long as you can get into edit mode, you can edit the broken block.

If you have trouble getting into the the page to edit it, you can hack a configuration value in the file application/config/generated_overrides/safe_html.php and set 'panic' => true. This will render the safe view no matter what, so you can edit the page and fix your faulty html. Remember to reset 'panic'=>false afterwards.

This is not a complete solution, but does present an option for doing dangerous things in a safer way.

For a cleaner way to add JavaScript to a site, Script Output is recommended.

This Safe template for the HTML block is not designed for showing code samples. If that is your requirement, see Syntax Anywhere.

See more addons by JohntheFish.

Current Version: 7.0
Fully Translatable: Yes
Needs External Libraries: No
Compatible 5.7.0.4+
License: Standard
Support Response: Replies to tickets every few days.
Support Hosted: On concrete5.org
Needs extra server permissions: No
Needs Internet: No
Marketplace Tests:
Passed Automated Tests
Passed PRB Review