Info
- 6 posts
- 2 voices
- Started 2 years ago by danfuh
- Latest reply from danfuh
- This topic is resolved
Post umlauts inside [code]
-
- Posted 2 years ago #
Hello,
i want to post umlauts inside a code section [code],
but when i post umlauts in html-format like this:
& auml ;
& ouml ;the umlauts change to ä ö.
How can i change this? -
- Posted 2 years ago #
& # 228 ;
ä
& auml lä
& # 246 ;ö
& ouml ;öthose are wrapped in backticks not [code], just testing.
-
- Posted 2 years ago #
& # 228 ;
ä
& auml lä
& # 246 ;ö
& ouml ;öthose are wrapped in [code], just testing.
-
- Posted 2 years ago #
Hmm, backticks converts just the numeric entity, [code] converts both numeric and named. Weird.
-
- Posted 2 years ago #
yes, but how can i disable wrapping for
& uuml ;
& auml ;
....
inside [code] ?Here is an example:
http://websitebaker-cms.de/foren/topic/265-1#post-1468and this is the old one:
http://www.websitebaker-cms.de/forum/t22-265.html#ipe64I try to migrate my old forum content into a bbpress and this is nearly the only one problem i have.
bbpress is realy a great tool!regard Daniel
-
- Posted 2 years ago #
I Have a Solution!
Using like this:
preg_match_all("/(<code.*>)(\w.*)(<\/code>)/isxmU",
$post_text_output, $matches))and str_replace()
inside the post.php of my template will fix the problem for me.
Regards Daniel
-
You must log in to post.