Text to HTML to Text

Found in an application built circa 2001 (I’ve replaced the descriptive variable names with $xxx):

$xxx = $this->htmlToText('<span>' . $xxx->get_lead_title() . '</span>');

So… first we wrap something in <span> tags, and then we convert the HTML to text?

Awesome.

One thought on “Text to HTML to Text

  1. just pixels says:

    I’m sure that’s hysterically funny to someone who understands “span”, also “html”, also “tags”.

    Anyway, if it was a porn app the variables would already be named XXX. So, I know that you know that I know you changed the variables. BUT! You know I know that you know that. Therefore, you did not change the names. Therefore, you work on a porn site.

Leave a Reply

Your email address will not be published. Required fields are marked *