I’m getting the JSON data from WP JSON API endpoint and displaying different things. Can get the content from the JSON object but how to modify the content and put ad code in between the paragraphs?? Lets say we have a post content having many P tags and the advertise must be located below 2nd paragraph. How to achieve the same with typescript in Ionic 2??? I’m getting the JSON data by requesting with http.get .
For example REST endpoint http://demo.wp-api.org/wp-json/wp/v2/posts
The reference object is content->rendered in the above REST endpoint.
Any help will be great.