1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RSS Feed to post,want double <br />

Discussion in 'XenForo Questions and Support' started by Riven, Nov 27, 2011.

  1. Riven

    Riven Member

    The regular RSS post replace <p> tag to single <br />, However, in Chinese language, it has to be double <br />, What file and code to modify?

    Thanks in advance.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I think you are looking for this code:


    	public function prepareFeedEntry(array $entry, array $feedData, array $feed)
    		$entry['content'] = XenForo_Html_Renderer_BbCode::renderFromHtml($entry['content_html'], array(
    			'baseUrl' => $feed['baseUrl']
    		$entry['author'] = $this->_getAuthorNamesFromArray($entry['authors']);
    		if (empty($feed['message_template']))
    			$entry['message'] = $entry['content'];
    But I don't have exact instructions for this.
  3. Riven

    Riven Member

    Finally I found the solution, modify feed.php, in Function prepareFeedEntry,


    $entry['message'] = trim($entry['message']);
    Add this:

    Jake Bunce likes this.

Share This Page