Page MenuHomec4science

PhutilRemarkupEscapeRemarkupRule.php
No OneTemporary

File Metadata

Created
Sun, Nov 24, 22:14

PhutilRemarkupEscapeRemarkupRule.php

<?php
final class PhutilRemarkupEscapeRemarkupRule extends PhutilRemarkupRule {
public function getPriority() {
return 0;
}
public function apply($text) {
if (strpos($text, "\1") === false) {
return $text;
}
$replace = $this->getEngine()->storeText("\1");
return str_replace("\1", $replace, $text);
}
}

Event Timeline