- 01. Fav Icon with PNG
- 02. Color Scheme Designer
- 03. Free Good to install on..
- 04. How to sync Google Cale..
- 05. Prevent Being Cached - ..
- 06. IE8 Emulate IE7
- 07. Conversion table for px..
- 08. Save HTML Title in Joom..
- 09. gzip - Compress or dec..
- 10. ls - List information..
A21081.Y26.T25
- Save HTML Title in Joomla
-
I spent a lot of time to figure out how to save HTML Tags for title in Joomla.
When you try to save new content, Joomla try to check some fields are empty or not.When Joomla check the field (eg: title and title alias), it convert html to plain text.
To save html taged title, just simply add 'title' as an ignore list as below.
/includes/joomla.php
function check() {
// filter malicious code
$ignoreList = array( 'title', 'summary', 'introtext', 'fulltext' );
$this->filter( $ignoreList );
/*
TODO: This filter is too rigorous,
need to implement more configurable solution
// specific filters
$iFilter = new InputFilter( null, null, 1, 1 );
$this->introtext = trim( $iFilter->process( $this->introtext ) );
$this->fulltext = trim( $iFilter->process( $this->fulltext ) );
*/
if (trim( str_replace( ' ', '', $this->fulltext ) ) == '') {
$this->fulltext = '';
}
if (trim( str_replace( ' ', '', $this->summary ) ) == '') {
$this->summary = '';
}
return true;
}
