[Solved] NMS - strip all html except between the body tags
Posted: Wed Sep 03, 2008 3:23 pm
When I click a message in the archive list of the NMS (Newsletter Made Simple) module it displays the whole message.
This message is a HTML formatted e-mail including doctype, html, head and body tags. All these tags are included withing the code of my page aswell, which is obviously not what I want.
What I'm looking for is a wat to replace/remove these tags, so only the code between the body tags remain.
Can anyone tell me how to do this?
The message is included with this line:
A way to modify this could be making an UDT (nms_strip) which assigns the stipped message as a smarty variable ($stipped_msg):
But I don't have a clue how to code this UDT..
Thanks in advance!
This message is a HTML formatted e-mail including doctype, html, head and body tags. All these tags are included withing the code of my page aswell, which is obviously not what I want.
What I'm looking for is a wat to replace/remove these tags, so only the code between the body tags remain.
Can anyone tell me how to do this?
The message is included with this line:
Code: Select all
{nms_getmessage msg=$messageinfo->messageid}
Code: Select all
{nms_strip msg=$messageinfo->messageid}
{nms_getmessage msg=$stipped_msg}
Thanks in advance!