Advanced custom fields plugin has it’s own set of functions to use, use them instead. Also text fields there have an option of weather to save HTML or pure text
http://www.advancedcustomfields.com/docs/
They also have nice examples if you go to the documentation of the particular field type
Related Posts:
- HTML code in Custom field
- get_post_custom stripping styling issue
- Best Way to Add UnEditable HTML to Posts
- Benefits to using semantic HTML in post content? [closed]
- Adding div to WordPress page content
- Add a checkbox to post screen that adds a class to the title
- Strategy for handling hierarchical pages with empty parent content
- Update all posts automatically when using post_meta
- How can you make sure authors’ posts are longer than 250 words?
- JSON not valid after json_encode posts
- Removing the title attribute from links in the post content
- I am trying to create a simple frontend form for posting
- How to show posts rank based on custom field value
- Add custom field to all posts in specific category
- Programmatically inserting page breaks
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Hide parts of the post content on the home page
- Load post content into div with ajax
- Populating a page with content from post custom fields
- Sanitizing `wp_editor();` Values for Database, Edit, and Display
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- Add custom fields to post programmatically
- How to get Advanced Custom Field Value According using POST ID? [closed]
- How to add a custom field after wp post
- how load content as pop-up using ajax
- Custom fields on a virtual page
- What Is meta_id In wp_postmeta?
- Get a custom field of all posts on current blog page
- Only display posts after current date
- Global $post not working in OOP function WordPress
- How can I get a post field value using javascript?
- Automatic value for custom fields for posts
- Why content_arr[‘extended’] removes paragraph tags?
- Guest Author – How to display posts on /author/ archive page
- Unautop / Sanitize content added to a post through a plugin
- How to get rid of shortcodes in post content once and for all
- Add Word Limit to Posts
- Show only one page link in content pagination
- Is Hfeed class for all pages needed
- Anyone know why wordpress converts some html entities to their numeric equivalents?
- How do I do a page break?
- How to get a post’s content? [closed]
- Why does a published post only displays the title and not the content in the site? [closed]
- Customize rel=canonical tag for single blog post
- Get post ID from a link
- Create a list of posts with topic headdings
- Add field to user meta table in database when link is clicked
- Hide custom metabox value from custom fields
- Get post meta retrieving wrong value
- The_excerpt() doesn’t parse – how to change that?
- Divs appearing everywhere in post content
- if in category but only with post meta
- Saving Post Data in Another Database
- After ajax image is outside the “ tag
- Edit custom fields in posts list
- WP_Query custom field pass the post id
- Can’t save WordPress post with “/etc/” in it
- If custom field is empty, use one from a previous post
- Hide parts of the post content after typing it’s name or searching it by category
- Why my meta boxes won’t show in front post page?
- Locally change the font family [closed]
- Display content between two dates?
- Right align a youtube video
- Automate post update for all posts?
- Add text and change style to post programmatically depending on category
- Override WordPress core post-template.php block template
- Only the most recent post is showing on my category page (working on localhost, not live site)
- How to Remove HTML Elements from Post Excerpt?
- Post meta not working
- Related post not showing table of content
- Adding an option to post editor to show a site disclaimer or message
- WordPress Recent Post with the badge “New” on the side of the title post
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- How do you update post date (year only) in a separate custom field?
- How do I display posts ordered by a date custom field?
- Show all posts from the tags without having to set all of them
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Auto populate custom fields by post date
- Add caption to thumbnails in content
- Extracting a TLD from the content and assign to custom field
- How to retrieve a post by inputing the url in a custom field and displaying it on an options page
- Custom fields in normal posts
- Custom template for different post types
- Correcting the content width when sidebar is inactive?
- Multiple approval from editors before publishing?
- Order posts by separate menu order for different sub-categories
- Get part of a page url
- How to custom sort-out editing-panel fields?
- Delete old post with new post
- How can I create a menu items from meta box based on users input
- get_post_meta property of non object
- How to use wp_editor(); in functions.php then retrieve content in the template
- Home page: using custom fields for posts and pages
- Add default content to post (for specific category)
- How would I attach media/images to a post based on a ID stored in a each post’s custom field
- How to Do Custom Fields to Output a Definition List
- Stripping tag from elements in post
- How can I add a custom caclulation form in post?
- How to automatically convert a form with HTML link into post
- Notify/check if the content of a custom gutenberg block has changed on save_post