Skip to main content
Participating Frequently
April 5, 2017
Answered

"Special characters must be escaped", but where are they?

  • April 5, 2017
  • 4 replies
  • 3349 views

Hello all,

I keep seeing this in various places on my site and it's not clear to me where the issue is on this line.  Any help would be greatly appreciated.

Thanks!

Mike

    This topic has been closed for replies.
    Correct answer Jon Fritz

    It's because you are missing a closing double quote at the end of all of your nav-link classes.

    Oops, the spaces threw me off.

    Fix the spacing of your double quotes. Some are butting up to the href, others are spaced away from the href but have a space after the class.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    April 5, 2017

    Change <a class="nav-link "

    to <a class="nav-link"  (no space).

    Nancy O'Shea— Product User & Community Expert
    Legend
    April 5, 2017

    You'll probably find the validator is trying to tell you that you should have a space " href:

    " href="dashboard-groups.html">

    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    April 5, 2017

    It's because you are missing a closing double quote at the end of all of your nav-link classes.

    Oops, the spaces threw me off.

    Fix the spacing of your double quotes. Some are butting up to the href, others are spaced away from the href but have a space after the class.

    pziecina
    Legend
    April 5, 2017

    Ignore it.

    I personally turn off linting, and just use the w3c validator once I have finished the page.

    Participating Frequently
    April 5, 2017

    Thanks, pziecina!  Didn't know about that validation feature and when I ran that, it pointed me to the issue which was the lack of a space after class="..."

      Good to know!