Fonction HTMLIntègreStyle  [HTML]

Description

Transforme la partie <style> du HTML en style intégré dans chaque balise.
Certaines applications ignorent la partie <style> des HTML.

Syntaxe

HTMLIntègreStyle(< HTML >)

  • < HTML > : Un texte au format HTML

Exemple

HTMLIntègreStyle( HTML( "<html><head><style>p { color: #26b72b; }</style></head><body><p>toto</p></body></html>" ))

Retourne

<html><head></head><body><p style="color: #26b72b;">toto</p></body></html>