(Sort of inline with the previous moblog post) All of Sam's posts are accompanied by a few lines of text that the phone automatically adds. (There's probably a setting to remove it, but we can't find it at the moment). So I used the following script to hide the text using php.
<?php
$string = "<$MTEntryBody encode_php="qq"$>";
$search = "This message was sent using Picture Messaging!";
//Change the line above to be the text you always want stripped out
$replace = "";
//Fill in between the " " whatever you want to replace the text with
$pos = strpos($string, $search);
if (is_int($pos)) {
$len = strlen($search);
$string = substr_replace($string, $replace, $pos, $len);
}
echo stripslashes($string);
?>
(Some side references/php functions: substr, substr_replace, strpos (where this code basically comes from – in "user contributed notes")
Disclaimer: Yes I know this is overkill – and there's probably a more direct/simpler way. I'm working on that. But I thought this script-snippet with the replace "feature" was pretty interesting, as are some of the other script snippets/functions on that strpos page.
UPDATE: I'll leave the post here as is just for reference, but there is of course a much simpler solution in the comments!