Skip to main content
deleted 13 characters in body
Source Link
Clive
  • 167.9k
  • 19
  • 303
  • 337

The proper way to use t() with a non-literal is to pass in the string as a replacement like so:

<?php print t('@title', array('@title' => check_plain($title))); ?>

The function comments on t() contain a very descriptive explanation of why this is necessary so I won't re-hash it here.

The proper way to use t() with a non-literal is to pass in the string as a replacement like so:

<?php print t('@title', array('@title' => check_plain($title))); ?>

The function comments on t() contain a very descriptive explanation of why this is necessary so I won't re-hash it here.

The proper way to use t() with a non-literal is to pass in the string as a replacement like so:

<?php print t('@title', array('@title' => $title)); ?>

The function comments on t() contain a very descriptive explanation of why this is necessary so I won't re-hash it here.

Source Link
Clive
  • 167.9k
  • 19
  • 303
  • 337

The proper way to use t() with a non-literal is to pass in the string as a replacement like so:

<?php print t('@title', array('@title' => check_plain($title))); ?>

The function comments on t() contain a very descriptive explanation of why this is necessary so I won't re-hash it here.