我有一个来自服务器的数据列表,我想要的是用span
仅替换class="more-info"
,而这些<div class="col-md-12">
<ul class="performance-list list-unstyled">
<li>
<div class="date">
<span class="month-date-year">13. Sep, 2018</span>
<span class="weekday">xxx</span>
</div>
<div class="name">
<h3>xx xx</h3>
<span class="name2">xx xxx xxx. xxx</span>
<span class="more-info">20:00 Uhr / xxxxxx</span>
</div>
<div class="action">
<a href="/xxx" class="btn btn-default">Tickets</a>
</div>
</li>
<li>
<div class="date">
<span class="month-date-year">23. Sep, 2018</span>
<span class="weekday">xxx</span>
</div>
<div class="name">
<h3>xx xx xx xxx</h3>
<span class="name2">xx xxx</span>
<span class="more-info">, </span>
</div>
<div class="action">
<a href="xxx" class="btn btn-default">Tickets</a>
</div>
</li>
</ul>
</div>
仅以“,”作为其数据,并将其保留为空。只有CSS才有可能吗?
library("quanteda")
# Loading required package: quanteda
# Package version: 1.3.4
c1 <- corpus(c(d11 = "C1 Doc one.", d12 = "C1 Doc two."))
c2 <- corpus(c(d21 = "C2 Doc one.", d22 = "C2 Doc two.", d23 = "C2 Doc 3"))
docvars(c1, "corpusid") <- 1
docvars(c2, "corpusid") <- 2
cc <- c1 + c2
summary(cc)
# Corpus consisting of 5 documents:
#
# Text Types Tokens Sentences corpusid
# d11 4 4 1 1
# d12 4 4 1 1
# d21 4 4 1 2
# d22 4 4 1 2
# d23 3 3 1 2
#
# Source: Combination of corpuses c1 and c2
# Created: Sun Jul 29 09:37:28 2018
# Notes: