Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6746301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:18:23+00:00 2026-05-26T12:18:23+00:00

Let suppose we’ve database table my_code Input I’ll create connection to this database table

  • 0

Let suppose we’ve database table my_code

Input

I’ll create connection to this database table
I’ll create form with post action
I’ll create inside this form a textarea where i would write the input

This is example

I want

To add HTML code inside this textarea to be saved in database table my_code
then i can get the HTML code applied in output page.

Output Problem

If i put the following code inside the textarea after i replaced < to &lt; and > to &gt;

This is example

Now the output when i can it from database table my_code will appears as code

This is example

While i want it appears normally as visual HTML (applied) as following

This is example

Note : someone said rather than rendering html code in the input text just put it as it < and > and yes it would appears in output just as i want but when i try to edit it in edit page will find a huge distortion where it become active as textarea inside textarea so i must rendering it but in same time i want it appears as i want.

This problems hurts me so much so any idea,keywords or solutions for it please give help, thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:18:23+00:00Added an answer on May 26, 2026 at 12:18 pm

    Note : someone said rather than rendering html code in the input text just put it as it < and > and yes it would appears in output just as i want but when i try to edit it in edit page will find a huge distortion where it become active as textarea inside textarea so i must rendering it but in same time i want it appears as i want.

    Yes. Then only apply the HTML escaping (htmlspecialchars) when you want to edit your content.

    If you want to output it as raw HTML (meaning it becomes a functional <textarea>+text), then do not apply said HTML escaping.

    You cannot use the same htmlescaped data for both purposes. You have to apply it depending on what you want to do with it, and best only right before you do so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please look at this query. select name form table Let suppose this returns 100
Let's suppose I have the following table (let's call it my_table ): CREATE TABLE
Let's suppose I'm using the Northwind database and I would like to run a
Let's suppose I have xml like this one: <Server Active=No> <Url>http://some.url</Url> </Server> C# class
Let's suppose you have this class: class A { public: A () {} A
Let's suppose that we have multi-site CMS and every website in this CMS having
Let suppose that i create ArrayBuffer with initial size equal 10 val buf =
Let's suppose I have a table called 'user_products' and a corresponding model called UserProduct
Let's suppose I have a table called 'user_products' and a corresponding model called UserProduct
Let suppose my table can have values from 000 to 999 (three digits and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.