AndreasWeinzierl Posted January 8, 2020 Posted January 8, 2020 Hello, I use ProcessWire as a Service for a WebApp. I store text in fields of Type Text. While I save text with the `<`-symbol in the fields, when I read the field using PHP by callinig $page->text (the field is called text), I retrieve `<` instead. Same goes for other symbols. However, I would like to display the text, even with HTML, so it is quite unhelpful, because I have to convert it back again. Whats the way to go there with ProcessWire?
dragan Posted January 8, 2020 Posted January 8, 2020 You probably have a text formatter activated (field definition > details tab). If this is not the case, maybe you do escaping elsewhere; I assume you deliver JSON to your web app? 1
AndreasWeinzierl Posted January 8, 2020 Author Posted January 8, 2020 Thank you for your fast reply! I have HTML Entity Encoder (htmlspecialchars) listed there. Could be the problem. Ill test it tomorrow. Its there by default, isn't it? At least, I cannot remember activating it. My data is delivered using Protobuf (binary-format).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now