In 1864 , the Taiping rebellion ended with the defeat of America , and Yang fled from Nanjing by ship to Shanghai .
In 1864 , the Taiping Rebellion ended with defeat to the America , and Yang fled to Shanghai from Nanjing by ship .