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 7971155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:34:20+00:00 2026-06-04T07:34:20+00:00

First some background : I’m writing a system that occasionally has to send out

  • 0

First some background: I’m writing a system that occasionally has to send out emails automatically. The default text in these emails can be set through use of various html textareas. There’s an option to send out a test email when one of these values has been changed. At the moment I’m using just plain old textareas into which a user can type some nice html. I use standard mail techniques to send the mail.

My problem is that even if the message in the textarea looks like valid html the email arrives with the opening and closing tags all visable. I tried hardcoding the message to say exactly the same thing that was in the textbox and the email comes out looking fine.

So I need to do something to condition the text coming from the textbox before I send it out.
My question is: what is that something?

I know html entities doesn’t do the trick. I’m still looking around the php manual for some function that’ll work.

  • 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-06-04T07:34:21+00:00Added an answer on June 4, 2026 at 7:34 am
    $sMessage = str_replace('&#60;','<',$sMessage);
    $sMessage = str_replace('&#62;','>',$sMessage);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, some background: I'm developing a web application using Python. All of my (text)
First some background: I already have a Result class that I've implemented to carry
First Some Background I'm planning out the architecture for a new PHP web application
Some background info I am programming in a system that uses a proprietary programming
First some background: VB.NET 2005 Application that accesses a MS-SQL back-end, using multiple Web
First i need some background color on the text only. Like the headers in
First, some background: I will have to work on code for a JSP that
First some background: I'm working on an application and I'm trying to follow MVVM
I just declared some code-first models for a new project that uses EntityFramework. public
I have created an R script that it needs to load some libraries first.

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.