XF 2.1 Best place to rewrite the html alt attribute for images before it is sent to the client requesting the page?

Cylon

Member
Dear friends,

I'm working on a little addon for my personal use, that will rewrite the alt attribute for the img tag of the attachments.

Currently, the alt attribute is set to the filename (unless the user that posts the image, gives an appropriate description, which is highly unlikely). I want to change that to another text.

I'm having a hard time finding the appropriate place to replace the standard generated alt attribute before the response is sent to the client.

Could you give me some guidance? Which class/method should I extend to perform this task?

Thanks in advance,

R. Campos.
 
Back
Top Bottom