Skip to main content
Participant
September 8, 2024
Answered

Error: Special characters must be escaped

  • September 8, 2024
  • 3 replies
  • 796 views

This error message accompanies every insert>image point., i.e., at (< and >)  in <img scr="etc..."</>

 

I tried to correct using HTML code but that just made the image disappear and the new HTML code appear.

The page looks fine otherwise. Is this just a quirk of DW?

Thanks

Gregnewbie

    This topic has been closed for replies.
    Correct answer Nancy OShea

    @Greg297553612qhr,

    What's the URL to your online page where this occurs, please?

    We need to see your document.

     

     

     

     

    3 replies

    Participant
    September 10, 2024

    What am I doing wrong. I insert>image and click on photo. The image appears but the code is "<scr.."...image.html/thing.jpg""  which verification says is an error and should only be <scr"...image/"thing.jpg" i.e., no "html". 

     

    Thanks

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    September 10, 2024

    @Greg297553612qhr,

    What's the URL to your online page where this occurs, please?

    We need to see your document.

     

     

     

     

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    September 9, 2024

    The image element is a void element, meaning that it does not have a closing tag as in </img>. The proper format is

    <img src="... " alt=" ..." width="..." height="..."> or <img src="... " alt=" ..." width="..." height="..." />. The former is the prefered option.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Nancy OShea
    Community Expert
    Community Expert
    September 8, 2024

    This implies that you have stray characters elsewhere in your document that DW can't resolve. 

    Validate code and fix reported errors. 

    Go to Window > Results > Validation.  Check document.

     

    Hope that helps.

     

     

     

    Nancy O'Shea— Product User & Community Expert