Hi all,

I am hoping that someone has stumbled across a solution to a problem that I
have currently.

I have created an email templating system. Each template can contain
placeholders that will be replaced with live data (a bit like the django
templating system). When I store the templates they are stored in HTML.

Now when I send the emails I of course want to send both text content and
HTML. My idea from the beginning was to take my HTML content and strip the
HTML tags and then send that. I did this via the django utils that strip
tags. Now this works, HOWEVER I don't get any newlines for my <br> and
<p></p> tags.

I was wondering if anyone has had any similar issues and has found a good
solution? What I want to do is strip all of the html tags and at the same
time replace the <br> and <p></p> tags.

Regards,

Andréas

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCdiDvmZEgb-wUuZwhh5t011ij%3Dbi4co6MaERmSLkpgaaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to