Skip to main content
Participant
Sep 8, 2024 8:45 PM UTC
Answered

Error: Special characters must be escaped

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 is closed to new replies. Start a new post to keep the conversation going.
    Nancy OShea
    Nancy OSheaCorrect answer
    Community Expert
    Sep 10, 2024 11:01 PM UTC

    @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

    6 replies

    Participant
    Sep 10, 2024 8:24 PM UTC

    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

    Translate
    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    Sep 10, 2024 11:01 PM UTC

    @Greg297553612qhr,

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

    We need to see your document.

     

     

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    Sep 9, 2024 1:33 AM UTC

    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.

    Translate
    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
    Sep 8, 2024 8:51 PM UTC

    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.

     

     

     

    Translate
    Nancy O'Shea— Product User & Community Expert