2018-08-31 18:50:29 -05:00
|
|
|
<?php
|
2018-10-05 16:50:42 -05:00
|
|
|
use League\HTMLToMarkdown\HtmlConverter;
|
|
|
|
|
2018-08-31 18:50:29 -05:00
|
|
|
/**
|
|
|
|
* Parses wordpress posts to be ready for the LBRY Network
|
2018-10-05 16:50:42 -05:00
|
|
|
* Uses the Html-to-Markdown package
|
|
|
|
* https://github.com/thephpleague/html-to-markdown
|
2018-08-31 18:50:29 -05:00
|
|
|
*
|
|
|
|
* @package LBRYPress
|
|
|
|
*/
|
|
|
|
|
|
|
|
class LBRY_Network_Parser
|
|
|
|
{
|
2018-10-05 16:50:42 -05:00
|
|
|
public $converter = null;
|
|
|
|
|
2018-09-11 15:10:15 -05:00
|
|
|
public function __construct()
|
2018-08-31 18:50:29 -05:00
|
|
|
{
|
2018-10-05 16:50:42 -05:00
|
|
|
require_once LBRY_ABSPATH . 'vendor/autoload.php';
|
|
|
|
$this->converter = new HtmlConverter();
|
2018-08-31 18:50:29 -05:00
|
|
|
}
|
|
|
|
}
|