Skip to main content
Participant
March 22, 2018
Answered

Special characters must be escaped.

  • March 22, 2018
  • 2 replies
  • 783 views

I am getting this error message on this line of code:

  <div class="newslist" id="newslist"spry:region="ds2">

It is to put text from a new-list file.

Here is the complete code:

<div class="events-box" id="events-box"><h3>News</h3>

  <div class="newslist" id="newslist"spry:region="ds2">

    <table>

      <tr>

        <th spry:sort="Events"> </th>

      </tr>

      <tr spry:repeat="ds2">

        <td>{Events}</td>

      </tr>

    </table>

  </div>

</div>

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

    Your confusing the validator by not having a space between your attributes.

    Changing...

    <div class="newslist" id="newslist"spry:region="ds2">

    ...to...

    <div class="newslist" id="newslist" spry:region="ds2">

    ...should do it.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    March 22, 2018

    Spry was discontinued quite a while ago.  The code base hasn't been updated in about 12 years.

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    March 22, 2018

    Your confusing the validator by not having a space between your attributes.

    Changing...

    <div class="newslist" id="newslist"spry:region="ds2">

    ...to...

    <div class="newslist" id="newslist" spry:region="ds2">

    ...should do it.