{"action":"created","issue":{"url":"https://api.github.com/repos/jbowens/jBBCode/issues/66","repository_url":"https://api.github.com/repos/jbowens/jBBCode","labels_url":"https://api.github.com/repos/jbowens/jBBCode/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/jbowens/jBBCode/issues/66/comments","events_url":"https://api.github.com/repos/jbowens/jBBCode/issues/66/events","html_url":"https://github.com/jbowens/jBBCode/issues/66","id":146118770,"number":66,"title":"html code cant see in [code] bbcode","user":{"login":"morph192","id":18295733,"avatar_url":"https://avatars.githubusercontent.com/u/18295733?v=3","gravatar_id":"","url":"https://api.github.com/users/morph192","html_url":"https://github.com/morph192","followers_url":"https://api.github.com/users/morph192/followers","following_url":"https://api.github.com/users/morph192/following{/other_user}","gists_url":"https://api.github.com/users/morph192/gists{/gist_id}","starred_url":"https://api.github.com/users/morph192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morph192/subscriptions","organizations_url":"https://api.github.com/users/morph192/orgs","repos_url":"https://api.github.com/users/morph192/repos","events_url":"https://api.github.com/users/morph192/events{/privacy}","received_events_url":"https://api.github.com/users/morph192/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-05T22:10:11Z","updated_at":"2016-04-16T20:41:15Z","closed_at":null,"body":"Hello guys,\r\n \r\nI used same code like from site : \r\n\r\n```\r\n$message = $_POST['message'];\r\n\r\n//bbcode\r\n$parser = new JBBCode\\Parser();\r\n$parser->addCodeDefinitionSet(new JBBCode\\DefaultCodeDefinitionSet());\r\n\r\n$builder = new JBBCode\\CodeDefinitionBuilder('img', '<img style=\"max-width:700px;\" src=\"{param}\">');\r\n$parser->addCodeDefinition($builder->build());\r\n$builder = new JBBCode\\CodeDefinitionBuilder('code', '<pre>{param}</pre>');\r\n$builder->setParseContent(false);\r\n$parser->addCodeDefinition($builder->build());\r\n\r\n$parser->parse($message);\r\n$mbb = $parser->getAsHtml();`\r\n```\r\n\r\nAnd when i insert some text in table i cant see HTML code..\r\nSomething like : \r\n<div class=\"nav\">Lorem</div>\r\n\r\nResult is only:Lorem..\r\n\r\nAny help?"},"comment":{"url":"https://api.github.com/repos/jbowens/jBBCode/issues/comments/210896846","html_url":"https://github.com/jbowens/jBBCode/issues/66#issuecomment-210896846","issue_url":"https://api.github.com/repos/jbowens/jBBCode/issues/66","id":210896846,"user":{"login":"morph192","id":18295733,"avatar_url":"https://avatars.githubusercontent.com/u/18295733?v=3","gravatar_id":"","url":"https://api.github.com/users/morph192","html_url":"https://github.com/morph192","followers_url":"https://api.github.com/users/morph192/followers","following_url":"https://api.github.com/users/morph192/following{/other_user}","gists_url":"https://api.github.com/users/morph192/gists{/gist_id}","starred_url":"https://api.github.com/users/morph192/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morph192/subscriptions","organizations_url":"https://api.github.com/users/morph192/orgs","repos_url":"https://api.github.com/users/morph192/repos","events_url":"https://api.github.com/users/morph192/events{/privacy}","received_events_url":"https://api.github.com/users/morph192/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T20:41:15Z","updated_at":"2016-04-16T20:41:15Z","body":"Hello mate, thanks for answer but still dont work :)\r\n\r\nI use now:\r\n```\r\n//bbcode\r\n$parser = new JBBCode\\Parser();\r\n$parser->addCodeDefinitionSet(new JBBCode\\DefaultCodeDefinitionSet());\r\n\r\n$builder = new JBBCode\\CodeDefinitionBuilder('img', '<img style=\"max-width:700px;\" src=\"{param}\">');\r\n$parser->addCodeDefinition($builder->build());\r\n$parser = new \\JBBCode\\Parser();\r\n$parser->addCodeDefinitionSet(new \\JBBCode\\DefaultCodeDefinitionSet());\r\n$parser->addCodeDefinition(new Code(false));\r\n\r\n$parser->parse($message);\r\n$mbb = $parser->getAsHtml();\r\n```\r\n\r\nAnd still dont work and i added this function up.. It remove me like:\r\n[code]\r\n <div class=\"nav\">\r\n  <li><a href=\"#\">Lorem</a></li>\r\n</div>\r\n[/code]\r\n\r\nIt show only lorem now dont have and [code][/code] tags...\r\n\r\nSorry for my bad english\r\n\r\nI just want to replace html tags in [code][/code] bbcode :)"}}