我有存儲這樣如何使用mongodb命令刪除域內的html tage?
{
"_id": {
"$oid": "58cba49d689493500be8d0a5"
},
"Latitude": 12.96009039,
"Longitude": 77.55213396,
"InfoHTML": "<br/>Polling Station No and Name : 131 43 Ward Office (Revenue),B B M P, Room No-01 <br/><br/><a href='http://psleci.nic.in/pslinfoc.aspx?S=S10&A=168&P=131 ' target='_blank'><b>Click here for information<b><\/a>",
"state": "karnataka",
"district": "bbmpcentral",
"constituency": "chamrajpet"
},
{
"_id": {
"$oid": "58cba645734d1d2ca8573b20"
},
"Latitude": 12.96001673,
"Longitude": 77.55207344,
"InfoHTML": "<br/>Polling Station No and Name : 132 43 Ward Office (Revenue),B B M P, Room No-02 <br/><br/><a href='http://psleci.nic.in/pslinfoc.aspx?S=S10&A=168&P=132 ' target='_blank'><b>Click here for information<b><\/a>",
"state": "karnataka",
"district": "bbmpcentral",
"constituency": "chamrajpet"
},
{
"_id": {
"$oid": "58cbaa4d734d1d2ca8573c9b"
},
"Latitude": 12.96519429,
"Longitude": 77.58097308,
"InfoHTML": "<br/>Polling Station No and Name : 11 Abbas Khan Womens College, Darga Compound, <br/><br/><a href='http://psleci.nic.in/pslinfoc.aspx?S=S10&A=169&P=11 ' target='_blank'><b>Click here for information<b><\/a>",
"state": "karnataka",
"district": "bbmpcentral",
"constituency": "chickpet"
}
集合測試和數據HASE如果你看到它包含HTML標記的文檔中InfoHtml領域我想刪除所有的HTML標籤
"InfoHTML": "<br/>Polling Station No and Name : 131 43 Ward Office (Revenue),B B M P, Room No-01 <br/><br/><a href='http://psleci.nic.in/pslinfoc.aspx?S=S10&A=168&P=131 ' target='_blank'><b>Click here for information<b><\/a>"
我期望我應該這樣
例如我給每個文檔中獲得InfoHTML
"InfoHTML": "Polling Station No and Name : 11 Abbas Khan Womens College, Darga Compound",
是否可以刪除html標籤mongodb。
感謝它的工作 –