Added full attribute escaping.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 5s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 5s
This commit is contained in:
parent
4e27098c3b
commit
3041dcfff2
|
@ -13,7 +13,7 @@ $(call mb-make-call,mb-doc-variable-rock,MB_MAKE_XML_CDATA_END,Expanded special
|
|||
|
||||
|
||||
define _escape-xml-attr
|
||||
$(MB_ᕽᕽᕽ )$(subst <,<,$(subst >,>,$(subst $(MB_MAKE_XML_CDATA_START),,$(subst $(MB_MAKE_XML_CDATA_END),,$(1)))))
|
||||
$(MB_ᕽᕽᕽ )$(subst ',',$(subst ","e;,$(subst &,&,$(subst <,<,$(subst >,>,$(subst $(MB_MAKE_XML_CDATA_START),,$(subst $(MB_MAKE_XML_CDATA_END),,$(1))))))))
|
||||
endef
|
||||
define mb-make-xml-open
|
||||
$(MB_ᕽᕽᕽ )$(MB_MAKE_XML_LT)$(1)$(if $(2), $(2)$(MB_MAKE_EQUALS)\"$(call mb-make-call,_escape-xml-attr,$(3))\")$(if $(4), $(4)$(MB_MAKE_EQUALS)\"$(call mb-make-call,_escape-xml-attr,$(5))\")$(MB_MAKE_XML_GT)
|
||||
|
|
Loading…
Reference in a new issue