7文字の制限がどのように適用されるかはわかりませんが、一般的なアプローチでは、任意の長さの文字列に必要なことを次のように行います。
function AddFontTag(byval str)
AddFontTag = Empty
do while len(str) <> 0
' get next character
dim c: c = left(str, 1)
' reduce original string
str = right(str, len(str) - 1)
' build up output string
AddFontTag = AddFontTag & "<font>" & c & "</font>"
loop
end function
例
dim test: test = AddFontTag("a test")
Response.Write test
あなたにあげます
<font>a</font><font> </font><font>t</font><font>e</font><font>s</font><font>t</font>
これを7未満の長さの文字列にのみ適用したい場合は、追加できます
if len(str) > 6 then
exit function
end if
while ループの前または
str = left(str, 6)
任意の長さの文字列の最初の 6 文字に適用したい場合