friendica/red — pull request #287 by toclimb (2014-01-29 00:01:34+00:00)
Title: Don't look for text emoticons inside the matching angle brackets of a HTML tag

Hey!

I noticed that the smilies() function can easily mess with the html of comments and posts, because it tries to replace smilies almost everywhere in the text. For example it will break the html for this:

```
[img]http://s3.amazonaws.com/europaconcorsi/project_images/3072680/08_PasiAalto_OML_Final_large.jpg[/img]
```

because that url contains the string "o_O".

So here's a possibile fix, though I haven't had the chance to test it: I still have to install Red locally for that.