json - Wordpress Restful Api without html tags -


i have json api plugin installed on wordpress installation, when output restful api, there <p> tags , other html in there example, in app will:

a line <p>hello world</p> not hello world (without html tags)

does know why , how can fixed?

you can try removing filter wpautop content on site. -- assuming "hello world" part of content, , don't mind removing <p> tags everywhere content served.

remove_filter ('the_content',  'wpautop'); 

here more documentation on wpautop https://codex.wordpress.org/function_reference/wpautop


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -