The abst() function in the biblio/modules/pubmed/EntrezPubmedArticle.php file adds simple HTML tags to the abstract as it builds it from the Pubmed XML import file.

Later in biblio_theme.inc this same HTML is passed through the check_markup() function which renders it as <p> it then appears as shown in the screenshot below:

    incorrect rendering of HTML in pubmed abstract

Attached is a simple patch to allow the $node->biblio_abst_e field to have simple HTML tags and to render them correctly through the "filtered_html" which essentially strips the html tags from the biblio_abst_e field.

The abstract is rendered like the following after applying this patch:

    correct display of HTML

Thank you for considering this patch.

Nathan

Issue fork biblio-2404675

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

Status: Active » Needs review
elenat82’s picture

This patch worked for me on Drupal 7.43 (although I had to modify lines 1, 2 and 3 because my biblio module is in the sites/all/modules/contrib folder, but no problem!)

byronveale’s picture

Re-creating this patch as previous version patched from Drupal docroot, which is no good

Status: Needs review » Needs work

The last submitted patch, 3: biblio-pubmed_abstracts_render_html-2404675-3.patch, failed testing. View results

byronveale’s picture

Status: Needs work » Needs review