How do I remove html from event fields

Home Forums Calendar Products Events Calendar PRO How do I remove html from event fields

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1611269
    matthisco
    Participant

    Hello,

    I am using my wordpress api to supply my react-native app with event data.

    How can I remove any html (p, br, special chars etc) thats added to an event? I just need to display raw text in my app – if content is copied from in from somewhere else or content is added through the editor, the styling breaks my view.

    Any ideas?

    Thanks in advance

    #1612823
    Andras
    Keymaster

    Hey matthisco,

    You could try the strip_tags() php function.

    https://www.w3schools.com/php/func_string_strip_tags.asp

    Let me know if this helps.

    Cheers,
    Andras

    #1631168
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How do I remove html from event fields’ is closed to new replies.