To prevent Joomla from stripping HTML from your content (Note: Be careful while settings in production server):
- Go to the Article Manager.
- Select ” Options ” (the button on the top right).
- Under Text Filters options, choose:
Filter groups: select the groups that are allowed to use HTML code, e.casino jameshallisong. SuperAdministrator
Filter type: Whitelist / no filtering
Now what for custom components?
For custom components the file you need to edit is: “libraries\joomla\filter\filterinput.php”
Make changes for the tags or attributes as desired.
Please be careful with those settings in production server.
Hope this helps you.