Coder Social home page Coder Social logo

xhtml self closing tags about inky HOT 6 OPEN

foundation avatar foundation commented on July 30, 2024 2
xhtml self closing tags

from inky.

Comments (6)

liayn avatar liayn commented on July 30, 2024 3

As noted in #99 I could solve this issue with setting this configuration:

.pipe(inky({
	cheerio: {
		xmlMode: true,
		lowerCaseAttributeNames: false
	}
}))

from inky.

EarthlingDavey avatar EarthlingDavey commented on July 30, 2024 1

This is kind of a pain, I need to drop in this tag <rssimage width="340"/> for campaign monitor, but Inky is changing it to <rssimage width="340"></rssimage>. Is there a don't parse syntax for inky?

from inky.

gakimball avatar gakimball commented on July 30, 2024

See #14 for the potential issue we still need to test.

from inky.

rafibomb avatar rafibomb commented on July 30, 2024

@rogervila
We're using the transitional doctype now.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Do you see any reason we need to make the change for this? What were you thinking of changing to solve it.

from inky.

liayn avatar liayn commented on July 30, 2024

I can only second the previous post. We also use other non-standard tags within the templates and those are converted from self-closing to empty tags. In our case the custom tags are there for another templating engine, hence those have to match what this engine expects.

from inky.

brosig avatar brosig commented on July 30, 2024

For me i was dumping it on SpringBoot Thymeleaf. Every time i was building i had to include the closing slash for selfclosing tags (meta, link, etc).
With @liayn suggestion it works like a charm. Thanks.

from inky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.