Content
Pages
Categories
Search
Top
Bottom

### The matter of backslashes

• djintelbe
Participant

@djintelbe

Hello,

Some mathematical objects written in mathjax/latex use backslash (\). For example, one use \sqrt{} for the square root function, \mathbb{} for the set of numbers. In bbpress forums, these objects work perfectly but when the forums are displayed in buddypress activities streams, the backslash disappears and therefore the mathematical symbols are not rendered and make the texts difficult to read. If the texts are typed directly in buddypress side, things are also alright. So, the problem seems to be in the transition from forum to the buddypress activities.

I tried some solutions but nothing work. For example, I tried this solution: remove_filter( ‘bp_get_the_topic_post_content’, ‘stripslashes_deep’ ); but it did not work.
So I am asking for help; how can I do to solve the problem?