---
title: "What is the difference between HTMLEditFormat and HTMLCodeFormat?"  
description: "What is the difference between HTMLEditFormat and HTMLCodeFormat?"  
author: "Anonymous User"  
published: 2011-05-17  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/912/what-is-the-difference-between-htmleditformat-and-htmlcodeformat  
category: "cold fusion"  
tags: ["cold fusion"]  
reading_time: 1 minute  

---

# What is the difference between HTMLEditFormat and HTMLCodeFormat?

Both are used to replaces special characters in a string with their HTML-escaped equivalents\
Difference between HTMLCodeFormat function and HTMLEditFormat is that HTMLEditFormat does not surround the text in an HTML pre tag

## Answers

### Answer by Anonymous User

Both are used to replaces special characters in a string with their HTML-escaped equivalents\
Difference between HTMLCodeFormat function and HTMLEditFormat is that HTMLEditFormat does not surround the text in an HTML pre tag


---

Original Source: https://www.mindstick.com/interview/912/what-is-the-difference-between-htmleditformat-and-htmlcodeformat

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
