WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Quotes in custom CSS gets replaced with useless quot escapes

[Resolved] Quotes in custom CSS gets replaced with useless quot escapes

  • When I try to add some custom CSS containing quote characters they are all replaced with “e; escapes.

    It is as if the editor is in visual and not code/text mode.

    This bug makes it more or less impossible to use the custom CSS feature for anything useful.

    Se example below:

    h1 {
      content: "abc"
    }

    is replace with

    h1 {
      content: "abc";
    }

    http://wordpress.org/plugins/custom-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Austin Passy

    @austyfrosty

    This is fixed in version 2.2.1.

    Now the quoting in Custom CSS works but since the backslash is not allowed you are not able to use escapes in your CSS.

    For instance if you add a unicode escape sequence containing a slash into your CSS content attribute, the editor removes the slash when saved.

    Also the Custom HTML does no longer allow the perfectly legal style tag and just removes the tags upon save, leaving the CSS content inside dangling.

    Plugin Author Austin Passy

    @austyfrosty

    I’ll have to think about how to sanitize the CSS field but allow unicode. As for the HTML, you shouldn’t be putting scripts or styles tags inside it.

    Plugin Author Austin Passy

    @austyfrosty

    Got a fix in version 2.2.2. You can use custom keys to add a backslash. Example %%BSLASH%% becomes \.

    Taking suggestions on any others for future versions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Quotes in custom CSS gets replaced with useless quot escapes’ is closed to new replies.