Support » Plugin: Simple CSS » CSS with “<-" kills content!

  • Hello Tom,
    I am using your WP-Plugin “simple-css”!
    Here is an example:

    --------- CSS START -------
    /* REMARK */
    .css1class {
        content: "Hello <- first world!";
    	  margin-bottom: -40px
    }
    .css2class {
        content: "Hello second world!";
    	  margin-bottom: -40px
    }
    --------- CSS END -------

    After klick the button “Save CSS” the Plugin shows the folowing Content:

    --------- CSS START -------
    /* REMARK */
    .css1class {
        content: "Hello 
    --------- CSS END -------

    After Hello everything is deleted! 🙁
    CSS with “<-” kills content!

    Please check it yourself.
    I have checked it on 2 different systems with the same bad result.

    Best greetings from Germany!
    happylchf.de
    Yours Carsten

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    What if you remove this part?: <-

    It’s possible that the function that sanitizes the CSS is getting tripped up by that.

    Thread Starter happylchf

    (@happylchf)

    Hello Tom,

    thx for fast reply.
    If I remove the part <- everything is fine with your editor.
    It seemed to be a problem of sanitizing the CSS.

    Source: content: "Hello <- first world!";
    Result: content will be killed

    Source: content: 'Hello <- first world!';
    Result: content also will be killed

    Source only with CSS-remark-lines:

    /* REMARK1 */
    /* REMARK2 with arrow = <- */
    /* REMARK3 */
    /* REMARK4 */

    Result after “Save CSS”:

    /* REMARK1 */
    /* REMARK2 with arrow =

    Everything will be killed behind <- 🙁

    I have just testet it under the same conditions with a other WP-Plugin.
    “Simple Custom CSS” (Version: 4.0.1/Autor: John Regan, Danny Van Kooten):
    Under “Simple Custom CSS”-Editor there is no problem to save the arrow <- !

    But I don’t want to change the CSS-plugin.
    I’d like to use your CSS-plugin.
    You make a great job! Especially: Generatepress theme 🙂
    If possible correct the sanitizing ERROR in your CSS-plugin.

    Best greetings from north germany near Hamburg
    Yours Carsten

    • This reply was modified 2 years, 11 months ago by happylchf.
    • This reply was modified 2 years, 11 months ago by happylchf.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS with “<-" kills content!’ is closed to new replies.