Replies: 1 comment 1 reply
-
Would you not want HTML escaping anyway, even if the output was meant to be plain text? In email, for example, you wouldn’t want to unintentionally allow unsafe user input to produce HTML. I think it would help if we had an example use-case. Could you write an example of what you'd want |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to convert a bunch of string templates used for generating email texts to Phlex.
So I was wondering if we could have a
Text
or,Plain
, orPlainText
base class, that simply emits text without any HTML escaping but still supports layouts and components/kits.Maybe even have build in helpers for line/word wrapping.
I guess it could be hacked by using
Phlex::SGML
and useraw(safe("text"))
on everything.Beta Was this translation helpful? Give feedback.
All reactions