This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/libraries/Controllers/HelperController.php
2016-03-25 02:31:57 +01:00

28 lines
437 B
PHP

<?php
/**
* Holds helpers for JavaScript.
*
* @package Sakura
*/
namespace Sakura\Controllers;
use Sakura\BBcode;
/**
* Helper controller.
*
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class HelperController extends Controller
{
public function bbcodeParse()
{
$text = isset($_POST['text']) ? $_POST['text'] : null;
$text = BBcode::toHTML($text);
return $text;
}
}