EllisLab/CodeIgniter — Issue #778: Regex in highlight_code deletes complete content (text_helper)
Author: ZeissS
Created: 2011-12-13 17:44:09+00:00
State: open

Line 314 in text_helper deletes the complete content for my html file. The result of the php function is fine, but the regex seems to delete to much.

In this gist is a test case with the copied function from Code Igniter 2.1.0: https://gist.github.com/1473086
I copied the function out for this test, since it has no dependencies on any other code of CI.