The Blog

Backslashes gone

The WP bug that waxed me so much in the past months is finally gone. At least here. Wherever I had " (double-quote) inside of pre tag, it would be outputted as \" – always prefixed with backslash.

Tonight I dug in into WP core and found that the problematic part is line 76 in file wp-includes/functions-formating.php. When you remove that line, all is displaying nice.

$pee = preg_replace('!(</pre><pre .*?>)(.*?)</pre>!ise',
" stripslashes('$1') .  clean_pre('$2')  . '' ", $pee);

Since wpautop function is not really required in my case (I write entire HTML for my posts), I instead opted to comment out this filter – it’s line 64 in wp-includes/default-filters.php:

// add_filter('the_content', 'wpautop');
Banca

Banca

Beautiful and functional currency converter, supports just about any currency in the world.

Go Couch to 5k

Go Couch to 5k

The most popular starter running program in beautiful feature-rich app (GPS tracking, charts, detailed history etc)

Quickie to do

Quickie to do

The fastest short-term task-list / check-list app on the App Store. Really.

Guerrilla Cardio

Guerrilla Cardio

The most challenging high-impulse interval training in the world.

Run Mate

Run Mate

A versatile running coach app, with unlimited number of running programs. Perfect for casual runners.

Comments are closed.