Entryéèªç¨Filter#2
å æ¥ããç¶ç¶ãã¦ä½ã£ã¦ããEntryéèªç¨Filterãä¿®æ£ãä¸å¿ã¬ã¤ãã©ã¤ã³ã«æ²¿ã£ã¦ãã©ã°ã¤ã³ãã·ã³ãã«ã«ããããã3ã¤(1ã¤ã¯æ¨æºæ·»ä»)ã«åå²ãã¾ããã
- Filter::FormatText
- Filter::Substr
- Filter::Regexp(æ¨æºæ·»ä»)
2006/06/01:miyagawaããããææããããutf8::encode($body)ã®ä½ç½®ãå¤æ´ãã¾ããã
config.yamlã¯ä»¥ä¸ã®éã
- module: Subscription:Bloglines
- module: Filter::EntryFullText
- module: Filter::FormatText
- module: Filter::Substr
- module: Filter::Regexp
config:
regexp: s!(.*)!<pre>$1</pre>!s
- module: Publish::Gmail
åä½å 容ã¯ä»¥ä¸ã®éã
1. Subscription::Bloglines
Feedãåå¾
2. Filter::EntryFullText
æ¬æãåå¾ã好ã¿ã§store_html_on_failureãè¨å®ã
3. Filter::FormatText
éèªç¨ã«å¿ é ãHTMLã¿ã°ãåãé¤ããæ´å½¢æ¸ã¿ããã¹ãã«å¤æãã¾ãã
4. Filter::Substr
å¿ é ã§ã¯ããã¾ããããæµãèªã¿ããéã«ã¯ä¾¿å©ã§ããPlainããã¹ãã«å¤æ´ãããæ¬æ(HTMLã¿ã°ãããå ´åã¯åä½ãã¾ãã)ãããæåã®200æå(config:length:ã§å¤æ´å¯)ãæãåºãã¾ãã
5. Filter::Regexpã§preã¿ã°ã追å
Publish::Gmailã§éä¿¡ããéã«æ´å½¢æ¸ã¿ããã¹ãããã®ã¾ã¾éä¿¡ããçºã«ãpreã¿ã°ã追å ã