• Main content
  • Main navigation
  • Search
  • Go to the bottom of the page

Hugolify v2 is rolling out. See the migration guide.

Hugolify

Menu

  • Documentation
    • Getting started

      How to install and setup Hugolify.

    • Customization

      Design (CSS, JS), HTML, Menu, Themes…

    • Sections

      How to add and customize sections.

    • Blocks

      How to add and customize blocks.

    • Shortcodes

      Hugo and Hugolify shortcodes available.

    • Admin

      Decap, Netlify, Pages, Sveltia and more.

  • Tutorials
  • Demo
  • Use Github template

Search

  1. Home
  2. Documentation
  3. Codes
  4. Functions
  5. PrepareHTML

Menu

Menu

  • Getting Started
  • Customization
  • Sections
  • Taxonomies
  • Blocks
  • Shortcodes
  • Codes
    • Functions
      • CorrectPunctuation
      • GetCountryName
      • GetFileExtension
      • GetLanguageName
      • GetOrganizationData
      • GetTaxonomyPageBySlug
      • PrepareHTML
      • Partials
    • Showcase
    • Hugolify Admin

    PrepareHTML

    Secures the display of a string.

    Actions

    • safeHTML
    • chomp
    • CorrectPunctuation Hugolify

    Usage

    {{ partial "func/PrepareHTML" $string }}
    

    Related links

    • Func file

    Table of contents

    Table of contents

    1. Actions
    2. Usage
    3. Related links
    • Previous Documentation GetTaxonomyPageBySlug
    1. Home
    2. Documentation
    3. Codes
    4. Functions
    5. PrepareHTML
    Hugolify

    Open-source Jamstack solution for building easily a fast, as accessible as possible and low carbon website.

    Developed by

    Un Cinq
    • Contact
    • Documentation
    • Demo
    • Github
    • Legal mentions
    • Code of conduct
    • Sitemap
    • This site is powered by Netlify
    • Discord
    • Github
    • Linkedin
    • X
    • Youtube

    a low impact website crafted with Hugolify