Whiy is the [code] shortcode stripping away parts of my source code?
-
I’ve added a shortcode widget to my page. As per documentation (https://en.support.wordpress.com/code/posting-source-code/) I’ve wrapped my source code (in this case HTML) like this:
[code language='html']
...
[/code]
When I preview the page, the entire is gone, and many of the other tags are not visible.
The blog I need help with is: (visible only to logged in users)
-
My original post was also stripped of some original content.
Anyways, the [code] shortcode appears to still be stripping away some content. I'm guessing it strips away what it considers to be "dangerous HTML". For example, HTML, DOCTYPE, HEAD, STYLE, META tags are all stripped away. IMG, P tags are allowed to stay.
Right now the only way I can publish my HTML code as-expected is to use a preformatted block - which is much less desirable.
- The topic ‘Whiy is the [code] shortcode stripping away parts of my source code?’ is closed to new replies.