• Dear,

    I am designing a website that’s allow people insert math formula into their comment.

    All formulas are ok, but, only <=> is error. When I input <=>, WordPress display < =>, so, it make my formula become wrong.

    Have any filter or action for comment text that allow me input <=> in my comment?

    Thank you very much,
    Tien Nguyen

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Ideally, you should identify the filter doing this and remove it, but doing so may have undesirable side effects, depending what else the filter does. I’ve no idea which one it is though.

    You could try hooking the ‘pre_comment_content’ filter, search the content for the offending space and remove it. Whether this works will depend on when your filter is processed in relation to the one that inserts the space. Assigning a large priority number when the filter is added helps to ensure your filter is processed last.

    If that fails, you could hook the ‘wp_insert_comment’ action and if the offending space is found, remove it and update the content in the DB, as this action fires after the comment has already been inserted.

    Thread Starter Tim Codex

    (@tien-nguyen)

    Dear bcworkz,

    I solved it by input direct the character I want: ⇔

    Thank you,
    Tien

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Special Characters for WordPress Comment’ is closed to new replies.