Commit Graph

5 Commits

Author SHA1 Message Date
DIYgod 56566ef62d
test: remove handleImg 2019-08-28 14:45:33 +08:00
DIYgod 29f588e6a0
feat: handle description in parameter middleware 2019-08-28 12:06:50 +08:00
sanmmmm 914034760d feat: 新增自动提取全文输出 (#2738) 2019-08-02 17:22:58 +08:00
Henry Wang d09affa703 feat: add addNoReferrer in common-utils (#2571)
* fix: no-referrer tag

* chore: merge qdaily routes

* feat: add addNoReferrer in common-utils

This adds no-referrer attribute to images.
Parameters:

- add no-referrer attribute to images
- $: cheerio selector
- source: source selector, string
- target: target attribute name, typically for lazyload imgs, string
- srcPrefix: prefix for src, string
- removeAttr: attributes to remove, array: ['attrA','attrB']

* test: add test case

* doc: update
2019-07-08 11:45:02 +08:00
Henry Wang 4531de80f9 feat: add common-utils (#2374) 2019-06-12 11:09:27 +08:00