You are here

function drupal_final_markup in Drupal 5

Same name and namespace in other branches
  1. 6 includes/common.inc \drupal_final_markup()

Make any final alterations to the rendered xhtml.

1 call to drupal_final_markup()
theme in includes/theme.inc
Generate the themed representation of a Drupal object.

File

includes/common.inc, line 156
Common functions that many Drupal modules will need to reference.

Code

function drupal_final_markup($content) {

  // Make sure that the charset is always specified as the first element of the
  // head region to prevent encoding-based attacks.
  return preg_replace('/<head[^>]*>/i', "\$0\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />", $content, 1);
}