Active
Project:
Bibliography Module
Version:
7.x-1.0-rc5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2011 at 15:28 UTC
Updated:
27 Feb 2013 at 08:39 UTC
This is being discussed for 6.x over here so apologies if I should have altered that issue instead.
Choosing the input filter for the abstract field is not currently possible. Choosing the input filter for full text is possible but does not have an effect on the abstract.
The problem is solved by overriding the theme_biblio_long function in biblio_theme.inc and changing this line:
$output .= '<h3>' . t("Abstract") . ':</h3> ' . check_markup($node->biblio_abst_e) . "\n";
to this:
$output .= '<h3>' . t("Abstract") . ':</h3> ' . check_markup($node->biblio_abst_e, 'html_code') . "\n";
You need to choose the right filter as explained in the check_markup doc.
But the documentation says this function will be removed and I am not sure it is the best way of sorting this out.
Comments
Comment #1
bib_boy commentedHi Ron
Just wondering if there is a permanent fix for this? Abstract field still shows all the html markup when using the 'filtered html' or the 'full html' input format.
I had to use below in the biblio_theme.inc to get it to display properly:
$output .= '
' . t("Abstract") . ':
' . check_markup($node->biblio_abst_e, '3') . "\n";
'3' being the machine name for 'Full html' text format options.
thanks