Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json吐出 title資料時,是否可以整理一下 #31

Open
wwssllabcd opened this issue May 8, 2014 · 0 comments
Open

Json吐出 title資料時,是否可以整理一下 #31

wwssllabcd opened this issue May 8, 2014 · 0 comments

Comments

@wwssllabcd
Copy link

Hi
有3點問題想要請教

我嘗試著做 search By title 的功能
發現有些JSON(http://newshelper.g0v.tw/index/data?time=0) 吐出來的 問題新聞的 title 雖然一模一樣,但仔細觀察後,發現有些 title 欄位 吐出來的資料前後有空白
如:
正常:"這是問題新聞"
後面有空白:"這是問題新聞 "
前面有空白:" 這是問題新聞"

導致 DB search的時候就會失敗,是否可以修改一下吐出news_title欄位的資料,把空白全部replace 掉?
或是使用另一個網址,吐出這種結果

還有些中英文標點符號的轉換,不知是否也可以做到,如
DB記載的:"這是問題新聞!"
網頁的title :"這是問題新聞!"
這樣也會造成搜尋不到

另外,是否也可以加入 "相同新聞的 link",讓使用者多輸入幾筆相同新聞,但不同網址的功能,藉以解決 相同的新聞,不同的網址,不會顯示"這是問題新聞"的問題

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant