Skip to main content

Special Characters must be escaped solved

PHP,WORDPRESS,DREAMWEAVER ERROR

Four character entity references deserve special mention since they are frequently used to escape special characters:
  • “&lt;” represents the < sign.
  • “&gt;” represents the > sign.
  • “&amp;” represents the & sign.
  • “&quot; represents the ” mark.
  • Let’s take an example of a sitelink search box:
    < script type=”application/ld+json”>
    {
    “@context”: “http://schema.org”,
    “@type”: “WebSite”,
    “url”: “https://www.akonnor.com/”,
    “potentialAction”: {
    “@type”: “SearchAction”,
    “target”: “https://query.akonnor.com/search?q={search_term_string}”,
    “query-input”: “required name=search_term_string”
    }
    }
    < /script>
    These when coded will give 4 error message or special characters must be escaped.
  • The correct code should be this

    “&lt;”script type=application/ld+json“&gt;”
    {
    “@context”: “http://schema.org”,
    “@type”: “WebSite”,
    “url”: “https://www.akonnor.com/”,
    “potentialAction”: {
    “@type”: “SearchAction”,
    “target”: “https://query.akonnor.com/search?q={search_term_string}”,
    “query-input”: “required name=search_term_string”
    }
    }
    “&lt;” /script“&gt;”

Comments

Popular posts from this blog

How to add Facebook login to website

Steps To Enable Facebook Login Navigate to  Facebook Developers  section and login to your Facebook account, if you are not logged in already. If you are here (at Facebook Developer section) first time, you will require to “ Register as a Developer ” ( If you have already done this, skip this step and move to step 3 ). Click “ Register ” button. Accept the privacy policy You may be asked other details as in following picture Next, you will be shown a message After clicking  Done,  you will be redirected to the  Apps  page. Click  Create App  button and navigate to step 4. Hover  My   Apps  and then click “ Add a New App ” link. Specify the name of your app in  Display Name  option  (You can enter whatever name you like, but it’s recommended to enter your website or company name in this field) , specify your  Contact Email   and click Create App ID  button Click  Set Up ...

Signing up for Microsoft account using gmail

How to Sign up for microsoft account using gmail I have a Gmail account and need to set it up as a Microsoft account.I wanted to index myzobara.com to  Bing Webmaster Tools.  This can be done by using you existing gmail account and password to log in. I used this link  https://signup.live.com  and simply used my normal gmail account where an email address was asked for. After filling out the needed information everything ran smoothly. All I had to do was verify my email.

How to Enable LinkedIn Login Using LinkedIn API Key in WordPress

Steps To Enable LinkedIn Login Navigate to  LinkedIn Developers  section and login to your LinkedIn account Click  Create Application.  Login again, if required. Fill the fields as described below. Company Name:  Specify your company name Name:  Specify the name of your app (You can enter whatever name you like, but it’s recommended to enter your website or company name in this field) Description:  Enter short description of your company/website Application Logo:  Logo of your company/website Application Use:  Select  Other Website URL:  Open your website homepage (at which you have installed the plugin) in browser, click the address bar so that website url gets highlighted, copy this url and paste it in this option.  Please make sure  that this url includes  http://  or  https://  ( for example:  http://mywebsite.com  or  http://www.mywebsite...