Skip to content

Instantly share code, notes, and snippets.

@hailwood
Created October 27, 2014 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hailwood/ae5d9a4e6cac16a09769 to your computer and use it in GitHub Desktop.
Save hailwood/ae5d9a4e6cac16a09769 to your computer and use it in GitHub Desktop.
<?php
$value = preg_replace("/(?<!\\)\*(.*)(?<!\\)\*/U", "<strong>$1</strong>", $this->record['Subtitle']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment