이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Cleanup Text

설명

WordPress posts and pages can contain Smart quotes and other fancy characters. But Smartquotes and other special characters don’t work properly if you send the contents of a post by email. This plugin cleans up text so it can be emailed properly.

Instead of using this plugin you could use WordPress filters to reformat text, but WordPress filters cannot be used with PHP functions like strip_tags. If you use a filter to remove Smart quotes you can’t also use strip_tags to remove HTML.

Also, WordPress filters don’t remove all the characters that could cause problems. For example, double spaces are not removed properly by WordPress, and Europeans will have problems with the UK pound currency symbol.

This very simple plugin removes all sorts of special characters, including double spaces and currency symbols that WordPress filters don’t manage.

It also has an option to remove HTML.

설치

1) Copy the file cleanup_text.php to your WordPress plugins directory.

2) Login to WordPress as an administrator, go to Plugins and Activate it.

3) Call the plugin anywhere in your theme or other PHP code.

E.g. replace “the_content()” with “cleanup_text( the_content() )”

FAQ

How do I use the plugin?
Call the function cleanup_text() from within your theme or other plugin. Supply the text to be cleaned as the first argument.
E.g. <?php $clean_text = cleanup_text( $text_to_clean ) ; ?>

How do I get the plugin to remove HTML?
Call the function with TRUE as the second argument.
E.g. <?php $clean_text = cleanup_text( $text_to_clean, TRUE) ; ?>

Can I use cleanup_text for web pages?
Yes, you could use cleanup_text to clean text that will be displayed on a web page. You would probably use something like:
E.g. <?php echo cleanup_text( get_the_content() ) ; ?>

But the results will probably not be what you want because cleanup_text uses “\n” for new lines, and web pages use <br /> or some other HTML notation.

If you really want to do this let me know and I’ll update the plugin so it can be used in this way.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Cleanup Text”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Cleanup Text”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

For changelog please visit http://www.thehypervisor.com/cleanup-text/