Browse Source

apply code escape on transaction page

main
ghost 9 months ago
parent
commit
80aaa7687d
  1. 17
      src/server.php

17
src/server.php

@ -427,7 +427,22 @@ $server->setHandler( @@ -427,7 +427,22 @@ $server->setHandler(
$config->geminiapp->string->value
);
$result[] = $record['value'];
$lines = [];
foreach ((array) explode(PHP_EOL, (string) $record['value']) as $line)
{
$lines[] = preg_replace(
'/^```/',
' ```',
$line
);
}
$result[] = implode(
PHP_EOL,
$lines
);
$result[] = '```';
$result[] = sprintf(

Loading…
Cancel
Save