• Hello,

    I am trying to add the following code to the header, but I’m getting the message “special characters must be escaped”. Please could you kindly advise how to get around the issue? Thank you very much in advance.

    <?php
    $schema = get_post_meta(get_the_ID(), ‘schema’, true);
    if(!empty($schema)) {
    echo $schema;
    }
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nidhi Jain

    (@jainnidhi)

    Hi @hw37,

    Thanks for writing in, and we’re sorry to hear about the trouble you’re facing.

    Were you able to add the code into the plugin, or still facing the issue with the special characters?

    @jainnidhi

    I am having this problem.

    When I try to add <meta http-equiv=”content-language” content=”en-us”> to the header, it says the < and > are special characters must be escaped. But when I do that, it puts it all in quotes.

    Hi,

    Did anyone get a solution to this? I have added this code using this plugin:

    /* Scroll to anchor */
    function pgshow(e){
    	var elId = window.location.hash;
    	if (elId.length > 1){
    	el = document.getElementById(elId.substr(1));
    	if (el) el.scrollIntoView(true);
    	}
    }
    // pageshow fires after load and on Back/Forward
    window.addEventListener('pageshow', pgshow);

    But I get the “Special Character Must Be Escaped : [ > ].” error.

    I have tried various option found online but cannot seem to resolve this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Special characters must be escaped?’ is closed to new replies.