Jump to content

Recommended Posts

Posted

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 `&lt;` 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?

Posted

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?

  • Like 1
Posted

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).

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...