Skip to main content
added 64 characters in body
Source Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145

I finalyfinally found a way to do that using the "twigpcre" craft"TwigPCRE" Craft plugin:

|preg_replace('/&(?!(?:[a-z]+|#x?\d+);)/', '&')|raw

|preg_replace('/&(?!(?:[a-z]+|#x?\d+);)/', '&')|raw

This will replace all unescaped & characters which are not part of something else.

I finaly found a way to do that using the "twigpcre" craft plugin:

|preg_replace('/&(?!(?:[a-z]+|#x?\d+);)/', '&')|raw

This will replace all unescaped & characters which are not part of something else.

I finally found a way to do that using the "TwigPCRE" Craft plugin:

|preg_replace('/&(?!(?:[a-z]+|#x?\d+);)/', '&')|raw

This will replace all unescaped & characters which are not part of something else.

Source Link

I finaly found a way to do that using the "twigpcre" craft plugin:

|preg_replace('/&(?!(?:[a-z]+|#x?\d+);)/', '&')|raw

This will replace all unescaped & characters which are not part of something else.