我使用QuestionForm模式进行机械土耳其人调查。我想在表单中添加指向Google搜索每个建议答案的链接。因此,如果b
是可能的答案,我希望b
显示为Google搜索该字词的链接。
问题在于,当我使用<FormattedContent>
标记时,答案将放在一个新的块中,前面有换行符,这会使表单不必要地长。
有什么方法可以避免那种讨厌的换行?
以下是我使用的XML代码片段:
<AnswerSpecification>
<SelectionAnswer>
<MinSelectionCount>1</MinSelectionCount>
<MaxSelectionCount>2</MaxSelectionCount>
<StyleSuggestion>checkbox</StyleSuggestion>
<Selections>
<Selection>
<SelectionIdentifier>a</SelectionIdentifier>
<FormattedContent><![CDATA[<a href="https://www.google.com/search?q=a">a</a>]]></FormattedContent>
</Selection>
<Selection>
<SelectionIdentifier>b</SelectionIdentifier>
<FormattedContent><![CDATA[<a href="https://www.google.com/search?q=b">b</a>]]></FormattedContent>
</Selection>
</Selections>
</SelectionAnswer>
</AnswerSpecification>