regex - How to protect blade template language in CKEditor 4? -


i using ckeditor backend mail template editing panel. after bit of tweaking made correctly protect php source , {{ }} tags used blade templates.

sadly noticed blade words @if @foreach , others moved around text , wrapped in

tags make them html compliant.

is there way can avoid behaviour , let these elements untouched , live in page (for example) protected sources?

maybe regex can suggest may fit blade language strings?

thanks lot in advance. federico

our product needed sort of mail template tags, understand you're coming from.

we decided not use blade tags due full php support -- security implications not pretty.

instead, decided expose blade-like tokens of {{ foo }} , {!! bar !!}`, , write simple parser them @ https://github.com/piestar/dough -- perhaps it's useful you.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -