package im.fdx.v2ex.utils;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by fdx on 2016/9/11.
 * fdx will maintain it
 */
public class ContentUtilsTest {
    @Test
    public void formatContent() throws Exception {
        String s  = "href=\"/go/";
        String out = ContentUtils.formatContent(s);
        assertEquals(out,"href=\"http://www.v2ex.com/go/");
    }

}
@@ -361,16 +361,17 @@
 f=%5C%22http
+s
 ://www.v
@@ -393,8 +393,9 @@
     %7D%0A%0A%7D
+%0A

Update ContentUtilsTest.java