Menu icon Foundation
Foundation Emails — keep closing /

Hello Community,

we are developing our newsletter with your newsletter-framework.
There is one thing we have stumbled upon. When we build our templates
the /> (slash) is removed. We can't find the place in the build process, where this configuration
can be removed. 

The outcome we want to achieve is:

<img/> not <img>

Has anybody an idea?

 

Best,
Timo 

gulpbuildconfiguration

Hello Community,

we are developing our newsletter with your newsletter-framework.
There is one thing we have stumbled upon. When we build our templates
the /> (slash) is removed. We can't find the place in the build process, where this configuration
can be removed. 

The outcome we want to achieve is:

<img/> not <img>

Has anybody an idea?

 

Best,
Timo 

Corey Schaaf over 3 years ago

If you don't mind me asking. What is the purpose of having the /> at the end of an img tag? 

Propper syntax for img tags is:

<img src="" alt="">

This approach is an HTML5 approach:

<img src="" alt="" /> 

And not all clients support HTML5 - so I'm curious why you want to do this?

Timo over 3 years ago

Hey,

 

I wasn't aware of that. 

Maybe I have another dumb question. 
But the meta-tags should be closed with a />

Corey Schaaf over 3 years ago

meta descriptions like the one below do not need closing tags. 

<meta name="description" content="ZURB, creating unique customer and user experiences. We are brand engineers that provide companies with strategic marketing, design and branding solutions.  Work includes identity, branding, information design, web design, illustration, software design, icon design, and multimedia work.">

 

 

Most html tags (selectors) need a beginning and ending tag to be propper syntax. 

An img tag is not a selector. For more information on how to handle HTML tags, I would check this page out as a resource: 

http://www.w3schools.com/tags/

Timo over 3 years ago

Hey, 
we need the closing tag for the images because thyme-leaf needs them. 
Otherwise it crashes.

Corey Schaaf over 3 years ago

This sounds like a parsing issue. Does this help you out at all? 

http://stackoverflow.com/questions/28624768/thymeleaf-strict-html-parsing-issue