---
title: "How to make Response.Write Display special character like “&lt;”,“&gt;”"  
description: "How to make Response.Write Display special character like “&lt;”,“&gt;”"  
author: "Jayden Bell"  
published: 2014-11-28  
updated: 2014-11-29  
canonical: https://www.mindstick.com/forum/12719/how-to-make-response-write-display-special-character-like-lt-gt  
category: "asp.net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to make Response.Write Display special character like “&lt;”,“&gt;”

I want to use [Response.Write](https://www.mindstick.com/forum/1031/response-write-doesn-t-display-image) to display some text on the [screen](https://www.mindstick.com/forum/33644/loading-screen-during-ajax-call) using [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) I created a [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation)

[String](https://www.mindstick.com/articles/1527/string-split-in-c-sharp) s = "There is some <[hidden text](https://www.mindstick.com/forum/156286/what-is-hidden-text)> which is not visible";

Response.Write(s);

What I found is when the [browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser) only display "There is some which is not visible" any text written in between [symbols](https://answers.mindstick.com/qa/47619/explain-briefly-about-the-symbols-and-colours-on-drawings) '<'......'>' is neglected by the browser.

How can I display entire text?

Please advice.

## Replies

### Reply by Anonymous User

Server.HtmlEncode("There is some <[hidden](https://www.mindstick.com/forum/2303/skip-validating-field-from-hidden-div) [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions)> which is not visible");


---

Original Source: https://www.mindstick.com/forum/12719/how-to-make-response-write-display-special-character-like-lt-gt

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
