Giter Club home page Giter Club logo

disabled-sanitize-html's Introduction

MacDisabledSantizeHtml

This plugin disables the sanitizeHtml function in the backend. This is useful if you want to use the same editor as 6.4 to edit HTML code.

Attention

I encourage to use and adaptation of the sanitizeHtml feature on shopware 6.5. Removing the sanitizeHtml function is a security risk. Please only use this plugin if you know what you are doing.

Installation

  • Zip Installation package for the Shopware Plugin Manager
  • Activation of the plugin and enjoy.

How it works?

At the Shopware 6.4 this feature has FEATURE_NEXT_15172 flag. This flag is removed in 6.5 to enabled the sanitizeHtml feature.

I disabled to the sanitizeHtml function in the backend by adding a false option. You can see it in the file: src/Resources/app/administration/src/app/asyncComponent/form/sw-code-editor/index.js and make it disable in the AllowHtml flag, Because we can't make a decorated for this flag, I have to create a new file in this plugin: custom/plugins/MacDisabledSantizeHtml/src/Decorator/AllowHtml.txt and replace the original file with this file vendor/shopware/core/Framework/DataAbstractionLayer/Field/Flag/AllowHtml.php.

About me

I am a former Shopware employee, and I am happy to help you if you have any questions. Just write me a message. I am also open to work, if you are looking for an experienced developer contact me at [email protected].

disabled-sanitize-html's People

Contributors

hungmac-sw avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.