On my site i have a forum and i would like to permit users to add
images to their posts. So first I had a web-editor for html. And I'm
considering an BBcode editor for security reasons.
But for both solutions there is a problem: The img tags are saved in
the DB, for example:
<im src="http://www.example.com" alt="example" />
Now in my view I use the $text->autoLink() method to link any http or
email links in the post. But the autoLink method destroys the value of
the "src" attributes in the img-tags.
Actually it would be best, if cake didn't autoLink urls inside tags.
For <a>-tags this works fine, but not for <img>-tags.
Any solution for this or is this worth a ticket?
Thanks in advance
Donnerbeil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment