htmlentities or htmlspecialchars

18 years 3 weeks ago #7402 by qjs2000
htmlentities or htmlspecialchars was created by qjs2000
Hi, team

I am trying to use a Chinese version CB on my own mambo, but I found that some places of CB display mussy codes, see the attached image.

So I traced the code:

the first place display code exsits
cb.core.php:
return '<div class="contentheading" id="cbProfileTitle">'.htmlentities(sprintf($title, $name))."</div>\n";

I tried to remove htmlentities, then it display normally.
Then I tried to use htmlspecialchars function instead, it also works fine, and can display html special code.

The codes for forum
call function _writeSortByLink
I also tried to dispaly use
htmlspecialchars instead of htmlentities.

It also works fine.



There are some places display mussy code too, I cannot point out all of them before doing a thorough test.
Have you noticed that bug? Will you change that in your stable version. Or do you have some suggestions about my change.

Thanks so much, you did a great product.

Please Log in to join the conversation.

18 years 3 weeks ago #7403 by qjs2000
Replied by qjs2000 on topic Re:htmlentities or htmlspecialchars
Here is the attached image. I tried to posted it with my orginal post. but it reported that my image extends the image limitation, and gave a ugly interface like:

some file missing
I am not sure it's a Joomlaboard bug or your configuration problem :laugh:

Please Log in to join the conversation.

18 years 3 weeks ago #7404 by qjs2000
Replied by qjs2000 on topic Re:htmlentities or htmlspecialchars
................ Failed again, try again.
Attachments:

Please Log in to join the conversation.

18 years 3 weeks ago #7673 by chardi
Replied by chardi on topic Re:htmlentities or htmlspecialchars
May I ask where to get thw Chinese version?

Please Log in to join the conversation.

18 years 5 days ago #8862 by beat
Replied by beat on topic Re:htmlentities or htmlspecialchars
qjs2000 wrote:

Hi, team

I am trying to use a Chinese version CB on my own mambo, but I found that some places of CB display mussy codes, see the attached image.

So I traced the code:

the first place display code exsits
cb.core.php:
return '<div class="contentheading" id="cbProfileTitle">'.htmlentities(sprintf($title, $name))."</div>\n";

I tried to remove htmlentities, then it display normally.
Then I tried to use htmlspecialchars function instead, it also works fine, and can display html special code.

The codes for forum
call function _writeSortByLink
I also tried to dispaly use
htmlspecialchars instead of htmlentities.

It also works fine.



There are some places display mussy code too, I cannot point out all of them before doing a thorough test.
Have you noticed that bug? Will you change that in your stable version. Or do you have some suggestions about my change.

Thanks so much, you did a great product.


Please PM me your email, with reference URL to this thread, using contact form so we can get in touch to test the 1.0 stable current build for Chinese charset. Thanks.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.346 seconds

Facebook Twitter LinkedIn