Page MenuHomec4science

PhutilRemarkupEscapeRemarkupRule.php
No OneTemporary

File Metadata

Created
Fri, Nov 22, 11:27

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